darkmode
This commit is contained in:
@@ -18,12 +18,16 @@ let timer = null
|
||||
const bypass = useRoute().query.approval
|
||||
|
||||
function tryApproval() {
|
||||
console.log('approval query', bypass)
|
||||
console.log('trying region approval')
|
||||
if (timer!==null) {
|
||||
clearTimeout(timer)
|
||||
timer = null
|
||||
}
|
||||
if (s.regionApproved===null) {
|
||||
if (s.regionApproved===true) {
|
||||
console.log('region approved')
|
||||
}
|
||||
else if (s.regionApproved===null) {
|
||||
console.log('asking for region approval', bypass)
|
||||
socket.emit('approveRegion', bypass)
|
||||
timer = setTimeout(tryApproval, 1000)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user