mirror of
https://github.com/galacean/engine.git
synced 2026-07-01 02:44:22 +08:00
fix: invalid url (#2652)
This commit is contained in:
@@ -79,7 +79,7 @@ export class Utils {
|
||||
}
|
||||
|
||||
if (!/^https?:/.test(baseUrl)) {
|
||||
const fileSchema = "files://";
|
||||
const fileSchema = "file://";
|
||||
baseUrl = fileSchema + baseUrl;
|
||||
return new URL(relativeUrl, baseUrl).href.substring(fileSchema.length);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user