Fixed not redirecting to Desktop apps https://codeberg.org/LibRedirect/libredirect/issues/72
This commit is contained in:
parent
f2ec16ba71
commit
fa3ad78392
|
@ -63,13 +63,13 @@ function redirect(url, type, initiator, forceRedirection) {
|
||||||
) return "BYPASSTAB"
|
) return "BYPASSTAB"
|
||||||
|
|
||||||
let instanceList = options[frontend]
|
let instanceList = options[frontend]
|
||||||
|
if (instanceList === undefined) break
|
||||||
if (instanceList.length === 0) return
|
if (instanceList.length === 0) return
|
||||||
|
|
||||||
randomInstance = utils.getRandomInstance(instanceList)
|
randomInstance = utils.getRandomInstance(instanceList)
|
||||||
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if (!randomInstance) return
|
|
||||||
|
|
||||||
// Here is a (temperory) space for defining constants required in 2 or more switch cases.
|
// Here is a (temperory) space for defining constants required in 2 or more switch cases.
|
||||||
const mapCentreRegex = /@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})[.z]/
|
const mapCentreRegex = /@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})[.z]/
|
||||||
|
|
|
@ -497,6 +497,25 @@
|
||||||
"imageType": "svg",
|
"imageType": "svg",
|
||||||
"embeddable": false,
|
"embeddable": false,
|
||||||
"url": "https://genius.com"
|
"url": "https://genius.com"
|
||||||
|
},
|
||||||
|
"urbanDictionary": {
|
||||||
|
"frontends": {
|
||||||
|
"ruralDictionary": {
|
||||||
|
"name": "Rural Dictionary",
|
||||||
|
"instanceList": true,
|
||||||
|
"url": "https://codeberg.org/zortazert/rural-dictionary"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
"^https?:\\/{2}(www\\.)?urbandictionary.com\\/"
|
||||||
|
],
|
||||||
|
"name": "Urban Dictionary",
|
||||||
|
"options": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"imageType": "svg",
|
||||||
|
"embeddable": false,
|
||||||
|
"url": "https://genius.com"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue