Skip to content
This repository was archived by the owner on Mar 29, 2021. It is now read-only.

Commit e405052

Browse files
committed
makes sure there was actually time to build the ui
fixes #304
1 parent 1f3d611 commit e405052

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/mods/settings.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,13 @@ idrinth.settings = {
362362
}
363363
apply ( idrinth.settings.data, data, apply );
364364
} catch (exception) {
365-
idrinth.core.alert ("There was a failure when trying to handle settings, the have been reset to default.");
365+
idrinth.core.timeouts.add (
366+
'settings-fail',
367+
function(){
368+
idrinth.core.alert ("There was a failure when trying to handle settings, they have been reset to default.");
369+
},
370+
1000
371+
);
366372
idrinth.core.log (exception.getMessage?exception.getMessage( ):exception.message);
367373
}
368374
};

0 commit comments

Comments
 (0)