don't consider localhost as PRODUCTION

This commit is contained in:
Azgaar 2021-09-12 00:16:29 +03:00
parent 055c55b731
commit f07cbe9323
6 changed files with 7 additions and 10 deletions

View file

@ -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 => {