Pretty fix

This commit is contained in:
David Négrier 2021-12-06 18:20:06 +01:00
parent c27662c315
commit 84f7a8c383
4 changed files with 18 additions and 19 deletions

View file

@ -270,7 +270,7 @@ export class GameScene extends DirtyScene {
// So if we are in https, we can still try to load a HTTP local resource (can be useful for testing purposes)
// See https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts#when_is_a_context_considered_secure
const base = new URL(window.location.href);
base.pathname = '';
base.pathname = "";
const url = new URL(file.src, base.toString());
const host = url.host.split(":")[0];
if (