|
|
1行目: |
1行目: |
| (function () {
| |
| mw.loader
| |
| .using("mobile.startup")
| |
| .then(function () {
| |
| var startup = mw.mobileFrontend.require("mobile.startup");
| |
| if (startup.mediaViewer) {
| |
| console.info("'mediaViewer.overlay' polyfill is no longer needed.");
| |
| return;
| |
| }
| |
| startup.mediaViewer = {
| |
| overlay: function (options) {
| |
| return mw.loader
| |
| .using("mobile.mediaViewer")
| |
| .then(function () {
| |
| var overlay = mw.mobileFrontend.require("mobile.mediaViewer/ImageOverlay");
| |
| startup.mediaViewer.overlay = overlay;
| |
| return overlay(options);
| |
| });
| |
| }
| |
| };
| |
| });
| |
| })();
| |
|
| |
| (function () { | | (function () { |
| var disableMobileUI = false | | var disableMobileUI = false |