diff options
author | Ajay Ramachandran <[email protected]> | 2020-02-08 22:55:59 -0500 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2020-02-08 22:55:59 -0500 |
commit | 2b558c43bd5ee0e73d6a8e75bbd8ead55ff5163f (patch) | |
tree | e7b70d34dea2e4b3f0099bbff1d5c3cc7903b0e5 | |
parent | 22cc51734fe23cfd1c6eeb85d8c18a3d6770eec0 (diff) | |
download | SponsorBlock-2b558c43bd5ee0e73d6a8e75bbd8ead55ff5163f.tar.gz SponsorBlock-2b558c43bd5ee0e73d6a8e75bbd8ead55ff5163f.zip |
Removed subdomain requirement.
-rw-r--r-- | public/_locales/en/messages.json | 2 | ||||
-rw-r--r-- | src/options.ts | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index db260eb0..5e0d0407 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -415,7 +415,7 @@ "message": "Reset" }, "customAddressError": { - "message": "This address is not in the right form. Make sure you have http:// or https:// at the begining and no slashes or sub-folders at the end." + "message": "This address is not in the right form. Make sure you have http:// or https:// at the begining and no trailing slashes." }, "areYouSureReset": { "message": "Are you sure you would like to reset this?" diff --git a/src/options.ts b/src/options.ts index 00a71bb9..eb0930b0 100644 --- a/src/options.ts +++ b/src/options.ts @@ -362,9 +362,8 @@ function validateServerAddress(input: string): string { input = input.substring(0, input.length - 1); } - // Isn't HTTP protocol or has extra slashes - if ((!input.startsWith("https://") && !input.startsWith("http://")) - || input.replace("://", "").includes("/")) { + // If it isn't HTTP protocol + if ((!input.startsWith("https://") && !input.startsWith("http://"))) { alert(chrome.i18n.getMessage("customAddressError")); |