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