mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
don't consider localhost as PRODUCTION
This commit is contained in:
parent
055c55b731
commit
f07cbe9323
6 changed files with 7 additions and 10 deletions
|
|
@ -212,7 +212,7 @@ async function getMapURL(type, options = {}) {
|
|||
}
|
||||
|
||||
// replace ocean pattern href to base64
|
||||
if (PRODUCTION && cloneEl.getElementById("oceanicPattern")) {
|
||||
if (location.hostname && cloneEl.getElementById("oceanicPattern")) {
|
||||
const el = cloneEl.getElementById("oceanicPattern");
|
||||
const url = el.getAttribute("href");
|
||||
await new Promise(resolve => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue