mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-23 08:30:38 +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) {
|
||||
|
||||
if (!url.startsWith('http')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
let extractedDomain;
|
||||
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user