Skip to content

Commit

Permalink
Update XR window
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Dec 30, 2024
1 parent 1d120cf commit 429dad8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3041,7 +3041,7 @@ function openXR(parentWindow: Electron.BrowserWindow) {
}

const width = 400;
const height = 400;
const height = 350;
xrWindow = new BrowserWindow({
width: width,
height: height,
Expand All @@ -3056,6 +3056,12 @@ function openXR(parentWindow: Electron.BrowserWindow) {
}
});

// Open URLs in browser
xrWindow.webContents.setWindowOpenHandler((details) => {
shell.openExternal(details.url);
return { action: "deny" };
});

// Finish setup
xrWindow.setMenu(null);
xrWindow.setFullScreenable(false); // Call separately b/c the normal behavior is broken: https://github.com/electron/electron/pull/39086
Expand Down
2 changes: 1 addition & 1 deletion www/xr.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</head>
<body>
<h3>AdvantageScope XR is coming soon!</h3>
<p>Stay tuned for updates.</p>
<p><a href="https://docs.advantagescope.org/xr" target="_blank">docs.advantagescope.org/xr</a></p>
<img src="xr.webp" />
</body>
</html>
Binary file modified www/xr.webp
Binary file not shown.

0 comments on commit 429dad8

Please sign in to comment.