Allow any public URL for storage

This commit is contained in:
thePR0M3TH3AN committed 2026-01-26 07:01:35 -05:00
1 parent 319a688147
commit dd363f0086
1 file changed
+2 -14
+2 -14
View File
@@ -9064,20 +9064,8 @@ export class ProfileModalController {
handlePublicUrlInput() {
if (!this.storagePrefixInput || !this.storagePrefixWarning) return;
const value = this.storagePrefixInput.value.trim().toLowerCase();
if (
value.includes(".r2.cloudflarestorage.com") ||
value.includes(".s3.") ||
value.includes(".amazonaws.com")
) {
this.storagePrefixWarning.textContent =
"This looks like your S3 Endpoint. Please enter your Public Access URL (e.g. r2.dev) instead.";
this.storagePrefixWarning.classList.remove("hidden");
} else {
this.storagePrefixWarning.textContent = "";
this.storagePrefixWarning.classList.add("hidden");
}
this.storagePrefixWarning.textContent = "";
this.storagePrefixWarning.classList.add("hidden");
}
updateStorageFormVisibility() {