Skip to content

Commit

Permalink
Rename mapml-viewer to mapml.js for consistency with project name
Browse files Browse the repository at this point in the history
  • Loading branch information
prushforth committed Sep 24, 2024
1 parent 36fd533 commit 48a72a2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ document.addEventListener("readystatechange", () => {
if (document.querySelector("mapml-viewer") || document.querySelector("map[is='web-map']")) {
/*
TODO: add when you want to remove network requests for built in version
let viewerScript = document.querySelector('script[src="https://unpkg.com/@maps4html/mapml@latest/dist/mapml-viewer.js"]');
let viewerScript = document.querySelector('script[src="https://unpkg.com/@maps4html/mapml@latest/dist/mapml.js"]');
if (viewerScript){
viewerScript.src = chrome.runtime.getURL("/js/mapml-viewer.js");
viewerScript.src = chrome.runtime.getURL("/js/mapml.js");
}*/
chrome.storage.local.get("options", function (obj) {
let mapOptionsElem = document.createElement("map-options");
Expand Down
2 changes: 1 addition & 1 deletion src/resources/importMapml.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(async () => {
const src = chrome.runtime.getURL("dist/mapml-viewer.js");
const src = chrome.runtime.getURL("dist/mapml.js");
const contentMain = await import(src);
})();
2 changes: 1 addition & 1 deletion test/e2e/basics/locale.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Static Features Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="../../../src/dist/mapml-viewer.js"></script>
<script type="module" src="../../../src/dist/mapml.js"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/basics/popup.test.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>index-map.html</title>
<script type="module" src="../../../src/dist/mapml-viewer.js"></script>
<script type="module" src="../../../src/dist/mapml.js"></script>
<style>
html,
body {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/basics/preferred-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Preferred Content Test</title>
<script type="module" src="../../../src/dist/mapml-viewer.js"></script>
<script type="module" src="../../../src/dist/mapml.js"></script>
</head>
<body>
<mapml-viewer style="height: 500px;width:500px;" projection="CBMTILE" zoom="8" lat="46.51231982020816" lon="-63.25669692277839" controls>
Expand Down

0 comments on commit 48a72a2

Please sign in to comment.