diff --git a/public/mapscript.js b/mapscript.js similarity index 100% rename from public/mapscript.js rename to mapscript.js diff --git a/src/components/Map1.tsx b/src/components/Map1.tsx index 2527ac240560594026b50caa2b8d049429f44ba0..ecb8ea334ab6573f23da364aec24c057ae7838b5 100644 --- a/src/components/Map1.tsx +++ b/src/components/Map1.tsx @@ -1,7 +1,7 @@ import InnerHTML from 'dangerously-set-html-content' export function Map1(){ const htmlFile = `<div style="min-height: 374px"> - <script type="text/javascript" defer src="%PUBLIC_URL%/mapscript.js" charset="utf-8"> + <script type="text/javascript" defer src="mapscript.js" charset="utf-8"> </script> <noscript> <img src="https://static.igem.wiki/teams/5247/charts-maps/map1-full.png" alt="" /> diff --git a/tsconfig.json b/tsconfig.json index 3b1ee878edfc0bd06b8b8aaaf9785c9db95b2e4d..daf6bdf7263ab72515f15cd10a28e55b312cf1a9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,7 +20,7 @@ "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src", "public/mapscript.js"] + "include": ["src", "mapscript.js"] } \ No newline at end of file