Skip to content

Commit 48a72a2

Browse files
committed
Rename mapml-viewer to mapml.js for consistency with project name
1 parent 36fd533 commit 48a72a2

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/content.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ document.addEventListener("readystatechange", () => {
66
if (document.querySelector("mapml-viewer") || document.querySelector("map[is='web-map']")) {
77
/*
88
TODO: add when you want to remove network requests for built in version
9-
let viewerScript = document.querySelector('script[src="https://unpkg.com/@maps4html/mapml@latest/dist/mapml-viewer.js"]');
9+
let viewerScript = document.querySelector('script[src="https://unpkg.com/@maps4html/mapml@latest/dist/mapml.js"]');
1010
if (viewerScript){
11-
viewerScript.src = chrome.runtime.getURL("/js/mapml-viewer.js");
11+
viewerScript.src = chrome.runtime.getURL("/js/mapml.js");
1212
}*/
1313
chrome.storage.local.get("options", function (obj) {
1414
let mapOptionsElem = document.createElement("map-options");

src/resources/importMapml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
(async () => {
2-
const src = chrome.runtime.getURL("dist/mapml-viewer.js");
2+
const src = chrome.runtime.getURL("dist/mapml.js");
33
const contentMain = await import(src);
44
})();

test/e2e/basics/locale.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>Static Features Test</title>
66
<meta charset="UTF-8">
77
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8-
<script type="module" src="../../../src/dist/mapml-viewer.js"></script>
8+
<script type="module" src="../../../src/dist/mapml.js"></script>
99
</head>
1010

1111
<body>

test/e2e/basics/popup.test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width,initial-scale=1">
66
<title>index-map.html</title>
7-
<script type="module" src="../../../src/dist/mapml-viewer.js"></script>
7+
<script type="module" src="../../../src/dist/mapml.js"></script>
88
<style>
99
html,
1010
body {

test/e2e/basics/preferred-content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width,initial-scale=1">
66
<title>Preferred Content Test</title>
7-
<script type="module" src="../../../src/dist/mapml-viewer.js"></script>
7+
<script type="module" src="../../../src/dist/mapml.js"></script>
88
</head>
99
<body>
1010
<mapml-viewer style="height: 500px;width:500px;" projection="CBMTILE" zoom="8" lat="46.51231982020816" lon="-63.25669692277839" controls>

0 commit comments

Comments
 (0)