De-modulized script.js

This commit is contained in:
Azgaar 2018-09-27 22:44:52 +03:00
parent ff3c70c179
commit 3471cfd271
2 changed files with 3 additions and 4 deletions

View file

@ -31,8 +31,8 @@
<script src="libs/polylabel.min.js"></script>
<script src="libs/quantize.min.js" defer></script>
<script src="libs/jquery.ui.touch-punch.min.js" defer></script>
<link rel="stylesheet" type="text/css" href="index.css?version=0.60.05b"/>
<link rel="stylesheet" type="text/css" href="icons.css?version=0.60.05b"/>
<link rel="stylesheet" type="text/css" href="index.css?version=0.60.06b"/>
<link rel="stylesheet" type="text/css" href="icons.css?version=0.60.06b"/>
<link rel="stylesheet" type="text/css" href="libs/jquery-ui.css"/>
</head>
<body>
@ -1288,5 +1288,5 @@
<input type="file" accept=".txt" id="namesbaseToLoad">
</div>
<script type="module" src="script.js?version=0.60.05b"></script>
<script src="script.js?version=0.60.06b"></script>
</body>

View file

@ -6666,7 +6666,6 @@ function fantasyMap() {
// Code from Kaiido's answer:
// https://stackoverflow.com/questions/42402584/how-to-use-google-fonts-in-canvas-when-drawing-dom-objects-in-svg
function GFontToDataURI(url) {
"use strict";
return fetch(url) // first fecth the embed stylesheet page
.then(resp => resp.text()) // we only need the text of it
.then(text => {