@@ -25,7 +25,12 @@
|
|
25
25
|
// We want to save on requests so we first check the file extension if there's any
|
26
26
|
// In some scenarios we might not have one (e.g. if we're dealing with blob: files or if the URL doesn't contain the filename)
|
27
27
|
// In that case we need to check the header
|
28
|
-
|
28
|
+
let _url = url;
|
29
|
+
// if (!_url.startsWith("http") && !url.startsWith("blob:")) {
|
30
|
+
// // _url = "file:" + url;
|
31
|
+
// }
|
32
|
+
|
33
|
+
const urlobj = new URL(_url, globalThis.location.origin);
|
29
34
|
let ext: string | null | undefined = null;
|
30
35
|
const query = urlobj.searchParams.get("filetype");
|
31
36
|
if (query) ext = query.toUpperCase();
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* eslint-disable */
|
2
2
|
import { TypeStore } from "./../engine_typestore.js"
|
3
|
-
|
3
|
+
|
4
4
|
// Import types
|
5
5
|
import { __Ignore } from "../../engine-components/codegen/components.js";
|
6
6
|
import { ActionBuilder } from "../../engine-components/export/usdz/extensions/behavior/BehavioursBuilder.js";
|
@@ -220,7 +220,7 @@
|
|
220
220
|
import { XRFlag } from "../../engine-components/webxr/XRFlag.js";
|
221
221
|
import { XRRig } from "../../engine-components/webxr/WebXRRig.js";
|
222
222
|
import { XRState } from "../../engine-components/webxr/XRFlag.js";
|
223
|
-
|
223
|
+
|
224
224
|
// Register types
|
225
225
|
TypeStore.add("__Ignore", __Ignore);
|
226
226
|
TypeStore.add("ActionBuilder", ActionBuilder);
|