mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
fix strict mode
This commit is contained in:
parent
32264b3a1d
commit
0fa7c61eba
1 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@
|
||||||
// Get rid of jQuery as d3.js can almost all the same and more
|
// Get rid of jQuery as d3.js can almost all the same and more
|
||||||
// Re-build UI on reactive approach, vue.js
|
// Re-build UI on reactive approach, vue.js
|
||||||
|
|
||||||
"use strict;";
|
"use strict";
|
||||||
fantasyMap();
|
fantasyMap();
|
||||||
function fantasyMap() {
|
function fantasyMap() {
|
||||||
// Version control
|
// Version control
|
||||||
|
|
@ -6666,7 +6666,7 @@ function fantasyMap() {
|
||||||
// Code from Kaiido's answer:
|
// Code from Kaiido's answer:
|
||||||
// https://stackoverflow.com/questions/42402584/how-to-use-google-fonts-in-canvas-when-drawing-dom-objects-in-svg
|
// https://stackoverflow.com/questions/42402584/how-to-use-google-fonts-in-canvas-when-drawing-dom-objects-in-svg
|
||||||
function GFontToDataURI(url) {
|
function GFontToDataURI(url) {
|
||||||
"use strict;";
|
"use strict";
|
||||||
return fetch(url) // first fecth the embed stylesheet page
|
return fetch(url) // first fecth the embed stylesheet page
|
||||||
.then(resp => resp.text()) // we only need the text of it
|
.then(resp => resp.text()) // we only need the text of it
|
||||||
.then(text => {
|
.then(text => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue