Add lint rule for unhandled promise rejections
This commit is contained in:
1 parent
ad682d0b69
commit
0b60406b43
14 files changed
+177
-117
No files matched your search
+17
-9
@@ -87,16 +87,24 @@ export const component: ClosureComponent = (vnode): Component => {
|
||||
})
|
||||
.then(() => {
|
||||
setTimeout(() => {
|
||||
m.request({ url: "init" }).then((o) => {
|
||||
e.target.disabled = false;
|
||||
options = o;
|
||||
notifications.push("success", "Initialization complete", {
|
||||
"Open Sesame!": () => {
|
||||
m.route.set("/login");
|
||||
window.location.reload();
|
||||
},
|
||||
m.request({ url: "init" })
|
||||
.then((o) => {
|
||||
e.target.disabled = false;
|
||||
options = o;
|
||||
notifications.push(
|
||||
"success",
|
||||
"Initialization complete",
|
||||
{
|
||||
"Open Sesame!": () => {
|
||||
m.route.set("/login");
|
||||
window.location.reload();
|
||||
},
|
||||
}
|
||||
);
|
||||
})
|
||||
.catch((err) => {
|
||||
notifications.push("error", err.message);
|
||||
});
|
||||
});
|
||||
}, 3000);
|
||||
if (opts["users"]) {
|
||||
alert(
|
||||
|
||||
Reference in new issue
Block a user