mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-25 07:18:35 -06:00
Fix for magnet links
This commit is contained in:
parent
94aece0d1d
commit
272dc38933
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ const copyShortUrl = async (link) => {
|
|||
|
||||
const addProtocol = (input) => {
|
||||
var url = input.value.trim();
|
||||
if (url != "" && !~url.indexOf(":/")) {
|
||||
if (url != "" && !~url.indexOf("://") && !~url.indexOf("magnet:")) {
|
||||
url = "https://" + url;
|
||||
}
|
||||
input.value = url;
|
||||
|
|
Loading…
Reference in a new issue