mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
fix fonts load error and reword save dialog text
This commit is contained in:
parent
d19899f0fc
commit
9adfe70850
4 changed files with 24 additions and 26 deletions
|
|
@ -61,7 +61,7 @@ function convertFontToDataURI(url) {
|
|||
style.innerHTML = text;
|
||||
document.head.appendChild(style);
|
||||
|
||||
const styleSheet = document.styleSheets.find(sheet => sheet.ownerNode === style);
|
||||
const styleSheet = Array.from(document.styleSheets).find(sheet => sheet.ownerNode === style);
|
||||
|
||||
const FontRule = rule => {
|
||||
const src = rule.style.getPropertyValue("src");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue