1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-26 07:38:36 -06:00

Fix for magnet links

This commit is contained in:
Sayantan Santra 2022-11-13 00:06:29 -06:00
parent 94aece0d1d
commit 272dc38933

View file

@ -87,7 +87,7 @@ const copyShortUrl = async (link) => {
const addProtocol = (input) => { const addProtocol = (input) => {
var url = input.value.trim(); var url = input.value.trim();
if (url != "" && !~url.indexOf(":/")) { if (url != "" && !~url.indexOf("://") && !~url.indexOf("magnet:")) {
url = "https://" + url; url = "https://" + url;
} }
input.value = url; input.value = url;