feat(infra): framework

This commit is contained in:
EYHN committed 2024-04-17 15:09:09 +08:00
1 parent ab17a05df3
commit 06fda3b62c
467 files changed
+9994 -8695

No files matched your search

@@ -37,7 +37,7 @@ app.on('web-contents-created', (_, contents) => {
* @see https://www.electronjs.org/docs/latest/tutorial/security#15-do-not-use-openexternal-with-untrusted-content
*/
contents.setWindowOpenHandler(({ url }) => {
if (!isInternalUrl(url)) {
if (!isInternalUrl(url) || url.includes('/redirect-proxy')) {
// Open default browser
shell.openExternal(url).catch(console.error);
}