Skip to content

Commit f9376cd

Browse files
committed
fix: 3rd party scripts running
1 parent 8b6afa8 commit f9376cd

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# UnderScript App Changelog
22

3+
## Version 1.5.5 (2024-08-12)
4+
1. Fixed cloudflare (again)
5+
36
## Version 1.5.4 (2023-07-10)
47
1. Fixed cloudflare captcha
58

src/electron.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ function createWindow() {
3030
"'unsafe-eval'",
3131
"'unsafe-inline'",
3232
'https://www.google-analytics.com',
33+
'https://www.googletagmanager.com',
3334
'https://*.cloudflare.com',
34-
'worker-src blob:'
35+
';',
36+
'worker-src',
37+
'blob:',
3538
].join(' '),
3639
],
3740
}
@@ -47,7 +50,7 @@ function createWindow() {
4750
click: () => win.setFullScreen(!win.isFullScreen()),
4851
}],
4952
});
50-
53+
5154
win.loadURL('https://undercards.net/SignIn');
5255
win.setMenu(null);
5356
win.maximize();
@@ -88,7 +91,7 @@ function createWindow() {
8891
if (process.env.LOCAL_DIR) checkVersion().catch(console.error);
8992
const { host, protocol } = new URL(url);
9093
if (host === 'undercards.net') return;
91-
94+
9295
event.preventDefault();
9396
if (protocol !== 'http:' && protocol !== 'https:') return;
9497
if (host === 'www.undercards.net') {

0 commit comments

Comments
 (0)