Merge branch 'master' into cleanbuild

This commit is contained in:
Daniel Imms
2021-10-25 02:47:52 -07:00
committed by GitHub
48 changed files with 771 additions and 606 deletions
@@ -29,7 +29,11 @@ const strictUrlRegex = new RegExp(start + protocolClause + bodyClause + end);
function handleLink(event: MouseEvent, uri: string): void {
const newWindow = window.open();
if (newWindow) {
newWindow.opener = null;
try {
newWindow.opener = null;
} catch {
// no-op, Electron can throw
}
newWindow.location.href = uri;
} else {
console.warn('Opening link blocked as opener could not be cleared');