mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-11 09:11:50 +00:00
Fix external link handling
This commit is contained in:
parent
a7ec1e53bf
commit
1e24b11834
@ -149,7 +149,7 @@ function createWindow() {
|
||||
|
||||
//// END SECURITY
|
||||
|
||||
win.webContents.on("new-window", (event, pth) => {
|
||||
win.webContents.on("will-navigate", (event, pth) => {
|
||||
event.preventDefault();
|
||||
|
||||
if (pth.startsWith("https://")) {
|
||||
|
||||
@ -36,7 +36,7 @@ export class PlatformWrapperImplElectron {
|
||||
*/
|
||||
openExternalLink(url) {
|
||||
logger.log(this, "Opening external:", url);
|
||||
window.open(url, "about:blank");
|
||||
location.replace(url);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user