Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return (...args) => ZalgoPromise.delay(time).then(() => handler(...args));
}
done: async () => {
firebaseDone();
if (waitingForResponse.length) {
await ZalgoPromise.delay(0);
}
if (waitingForResponse.length) {
throw new Error(`Waiting for responses from firebase: ${ waitingForResponse.join(', ') }`);
}
}
};
close: () => {
return ZalgoPromise.delay(50).then(() => {
if (props.onClose) {
return props.onClose();
}
});
},
onError: (err) => {
set location(loc : string) {
ZalgoPromise.delay(10).then(() => {
currentUrl = loc;
onLoad();
});
},
closed: false,