mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Merge pull request #1721 from PR0M3TH3AN/codex/remove-url-limitation-for-storage-bucket
Allow any public URL for storage prefix
This commit is contained in:
1 file changed
+2
-14
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user