Remove "dead" code that intended to support the mobile version but never worked.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 11 Jan 2021 21:26:45 +0000 (22:26 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 11 Jan 2021 21:26:45 +0000 (22:26 +0100)
extension.json
wrmap.body.php

index 9ae586b79bae95c7a0038da5c88ff3e8c5bfff2f..0ea018a345f25239fba580b246770a2c3764861a 100644 (file)
                                "desktop",
                                "mobile"
                        ]
-               },
-               "ext.wrmap.mobile": {
-                       "scripts": [
-                               "wrmap.js"
-                       ],
-                       "styles": ["wrmap.css"],
-                       "position": "top",
-                       "targets": "mobile"
                }
        },
        "ResourceFileModulePaths": {
index 7fc7265657619be24929fb05cd13520df89941de..5faf1ec3dba97f073781c21b47f72dc82145b856 100644 (file)
@@ -449,12 +449,6 @@ class WrBaseMap {
                $div_popup->appendElement('div', array('id' => 'popup-content'));
                return array($doc->saveHTML($div_map) . $doc->saveHTML($div_popup), 'markerType' => 'nowiki');
        }
-
-
-       public static function onEnableMobileModules($out, $mode) {
-               $out->addModules('ext.wrmap.mobile');
-               return true;
-       }
 }