Skip to content

Commit 580ea5a

Browse files
author
Hiram
committed
[Optimization] behavior of preventing developer tools from loading
1 parent 69d24c8 commit 580ea5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ app.whenReady().then(async () => {
7272

7373
defaultSession.webRequest.onBeforeRequest({ urls: ['*://*/*'] }, (details, callback) => {
7474
let { url, id } = details;
75-
const filters = ['devtools-detector.min.js', 'devtools-detector.js'];
75+
const filters = ['devtools-detector', 'disable-devtool'];
7676
if (filters.some((filter) => url.includes(filter))) {
7777
callback({ cancel: true });
7878
return;

0 commit comments

Comments
 (0)