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

Commit be67aab

Browse files
committed
fallback for alert so it doesn't break
1 parent e405052 commit be67aab

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/mods/core.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ idrinth.core = {
278278
* @returns {undefined}
279279
*/
280280
alert: function ( text ) {
281+
if(!idrinth.ui.base) {
282+
window.alert (text);
283+
return;
284+
}
281285
idrinth.ui.buildModal ( 'Info', text );
282286
},
283287
/**

0 commit comments

Comments
 (0)