Pretty fix
This commit is contained in:
parent
c27662c315
commit
84f7a8c383
4 changed files with 18 additions and 19 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue