fix non-links (#1522)

This commit is contained in:
Guillermo Vayá
2021-03-30 15:45:53 +02:00
committed by GitHub
parent a93e3bcb67
commit a0ebc19c54

View File

@@ -97,6 +97,12 @@ const generateDidStartNavigation = (getServersFunction) => {
const generateNewWindowListener = (getServersFunction, spellcheck) => {
return (event, url) => {
const parsedURL = urlUtils.parseURL(url);
if (!parsedURL) {
event.preventDefault();
log.warn(`Ignoring non-url ${url}`);
return;
}
const configServers = getServersFunction();
// Dev tools case