diff --git a/resources/skins.minerva.options/categories.js b/resources/skins.minerva.options/categories.js index 1a497a66a..09b385a13 100644 --- a/resources/skins.minerva.options/categories.js +++ b/resources/skins.minerva.options/categories.js @@ -4,7 +4,8 @@ module.exports = function () { mobile = M.require( 'mobile.startup' ), loader = mobile.rlModuleLoader, features = mw.config.get( 'wgMinervaFeatures', {} ), - overlayManager = require( 'skins.minerva.scripts' ).overlayManager, + OverlayManager = mobile.OverlayManager, + overlayManager = OverlayManager.getSingleton(), eventBus = mobile.eventBusSingleton, isAnon = mw.user.isAnon(); diff --git a/resources/skins.minerva.scripts/init.js b/resources/skins.minerva.scripts/init.js index 9c33a4402..1523704cd 100644 --- a/resources/skins.minerva.scripts/init.js +++ b/resources/skins.minerva.scripts/init.js @@ -357,7 +357,4 @@ isSmall: true } ).$el.appendTo( '.toctitle' ); } ); - module.exports = { - overlayManager: overlayManager - }; }( mw.mobileFrontend ) ); diff --git a/resources/skins.minerva.talk/init.js b/resources/skins.minerva.talk/init.js index dbf763c06..c7d7d1e84 100644 --- a/resources/skins.minerva.talk/init.js +++ b/resources/skins.minerva.talk/init.js @@ -11,7 +11,7 @@ $talk = $( '.talk, [rel="discussion"]' ), // use the plain return value here - T128273 title = $talk.attr( 'data-title' ), - overlayManager = require( 'skins.minerva.scripts' ).overlayManager, + overlayManager = mobile.OverlayManager.getSingleton(), // FIXME: This dependency shouldn't exist skin = mobile.Skin.getSingleton(), inTalkNamespace = false,