375
回編集
編集の要約なし |
編集の要約なし タグ: モバイル編集 モバイルウェブ編集 |
||
1行目: | 1行目: | ||
(function () { | (function () { | ||
var mobileStartup = "mobile.startup"; | |||
var mobileMediaViewer = "mobile.mediaViewer"; | |||
var modules = [mobileStartup, mobileMediaViewer]; | |||
mw.loader.load(modules); | |||
mw.loader | mw.loader | ||
.using( | .using(modules) | ||
.then(function () { | .then(function () { | ||
if ( | var startup = mfModules[mobileStartup]; | ||
if (startup.mediaViewer) { | |||
overlay | console.info("No longer needed 'mediaViewer' polyfill."); | ||
return; | |||
} | |||
var overlay = mw.mobileFrontend.require(mobileMediaViewer + "/ImageOverlay"); | |||
startup.mediaViewer = { | |||
overlay: overlay | |||
}; | }; | ||
}); | }); |