mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
This commit is contained in:
@@ -38,11 +38,11 @@ var gZenNewWebPanel = {
|
||||
if (!url || !ua) {
|
||||
return;
|
||||
}
|
||||
const urlValue = this.addHttpIfMissing(url.value);
|
||||
let urlValue = url.value;
|
||||
try {
|
||||
new URL(urlValue);
|
||||
} catch (_) {
|
||||
return;
|
||||
urlValue = this.addHttpIfMissing(url.value);
|
||||
}
|
||||
if (!url.value || !ua.value) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user