Check url and remove buttons

This commit is contained in:
nobody 2020-05-29 18:06:49 +02:00
parent d35dc51cc0
commit 78c08aeec1
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 4 additions and 0 deletions

View File

@ -105,6 +105,10 @@ helpers.normalizeDomain = function (domain) {
helpers.extractDomainFromUrl = function (url = '', normalize) {
if (!url.startsWith('http')) {
return null;
}
let extractedDomain;
try {