mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-22 09:16:46 +00:00
Fix for magnet links
This commit is contained in:
parent
94aece0d1d
commit
272dc38933
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user