mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-01-11 09:35:16 +01:00
Check url and remove buttons
This commit is contained in:
parent
d35dc51cc0
commit
78c08aeec1
@ -105,6 +105,10 @@ helpers.normalizeDomain = function (domain) {
|
|||||||
|
|
||||||
helpers.extractDomainFromUrl = function (url = '', normalize) {
|
helpers.extractDomainFromUrl = function (url = '', normalize) {
|
||||||
|
|
||||||
|
if (!url.startsWith('http')) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
let extractedDomain;
|
let extractedDomain;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user