Fix s3:// resolving, don't use origin for non-standard URLs, fixes #432 (#434)

This commit is contained in:
Ilya Kreymer
2025-06-14 15:06:12 -04:00
committed by GitHub
parent a33daf8c9b
commit 6ee91ad4d7
+1 -1
View File
@@ -181,7 +181,7 @@ class Loader extends LitElement {
source = {
sourceUrl,
loadUrl: `https://${url.hostname}.s3.amazonaws.com${url.href.slice(
url.origin.length,
url.hostname.length + "s3://".length,
)}`,
name: this.sourceUrl,
};