mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Check url and remove buttons
This commit is contained in:
@ -105,6 +105,10 @@ helpers.normalizeDomain = function (domain) {
|
||||
|
||||
helpers.extractDomainFromUrl = function (url = '', normalize) {
|
||||
|
||||
if (!url.startsWith('http')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
let extractedDomain;
|
||||
|
||||
try {
|
||||
|
Reference in New Issue
Block a user