diff --git a/Resources.php b/Resources.php index 3e00380e..d2eb38f3 100644 --- a/Resources.php +++ b/Resources.php @@ -34,6 +34,7 @@ $wgResourceModules['ext.uls.ime'] = array( 'scripts' => 'resources/js/ext.uls.ime.js', 'dependencies' => array( 'jquery.ime', + 'ext.uls.init', 'ext.uls.preferences', ), ) + $resourcePaths; diff --git a/resources/js/ext.uls.ime.js b/resources/js/ext.uls.ime.js index 04df81f4..c3c64257 100644 --- a/resources/js/ext.uls.ime.js +++ b/resources/js/ext.uls.ime.js @@ -200,6 +200,9 @@ }; $( document ).ready( function () { + if ( !mw.uls.isBrowserSupported() ) { + return; + } // Load the ime preferences $.ime.preferences.load();