From dd363f0086332d6fb0c69a7f261543967d359da3 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Mon, 26 Jan 2026 07:01:35 -0500 Subject: [PATCH] Allow any public URL for storage --- js/ui/profileModalController.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/js/ui/profileModalController.js b/js/ui/profileModalController.js index 91395295..8855f899 100644 --- a/js/ui/profileModalController.js +++ b/js/ui/profileModalController.js @@ -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() {