mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
don't consider localhost as PRODUCTION
This commit is contained in:
parent
53133b9d8c
commit
60757eed2d
1 changed files with 6 additions and 6 deletions
|
|
@ -214,12 +214,12 @@ async function getMapURL(type, options = {}) {
|
||||||
// add resources TODO
|
// add resources TODO
|
||||||
|
|
||||||
// replace ocean pattern href to base64
|
// replace ocean pattern href to base64
|
||||||
if (PRODUCTION && cloneEl.getElementById('oceanicPattern')) {
|
if (location.hostname && cloneEl.getElementById("oceanicPattern")) {
|
||||||
const el = cloneEl.getElementById('oceanicPattern');
|
const el = cloneEl.getElementById("oceanicPattern");
|
||||||
const url = el.getAttribute('href');
|
const url = el.getAttribute("href");
|
||||||
await new Promise((resolve) => {
|
await new Promise(resolve => {
|
||||||
getBase64(url, (base64) => {
|
getBase64(url, base64 => {
|
||||||
el.setAttribute('href', base64);
|
el.setAttribute("href", base64);
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue