Skip to content

Commit fa9adb5

Browse files
committed
fix(standalone): fixes #235
1 parent 348ea06 commit fa9adb5

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

standalone/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cap-standalone",
3-
"version": "3.0.4",
3+
"version": "3.0.5",
44
"keywords": [
55
"algorithm",
66
"anti-abuse",
@@ -42,7 +42,7 @@
4242
"scripts": {
4343
"test": "echo \"Error: no test specified\" && exit 1",
4444
"dev": "bun run --watch src/index.js",
45-
"docker:publish": "docker buildx build --platform linux/amd64,linux/arm64 -t tiago2/cap:3.0.3 -t tiago2/cap:3.0 -t tiago2/cap:3 -t tiago2/cap:latest . --push"
45+
"docker:publish": "docker buildx build --platform linux/amd64,linux/arm64 -t tiago2/cap:3.0.5 -t tiago2/cap:3.0 -t tiago2/cap:3 -t tiago2/cap:latest . --push"
4646
},
4747
"dependencies": {
4848
"@elysiajs/cors": "^1.4.1",

standalone/src/instrumentation-worker.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,6 @@ function buildBlockChecks(b, id) {
129129
`if (!${b} && typeof window.process !== 'undefined') { try { if (window.process.type === 'renderer' || (window.process.versions && window.process.versions.electron)) ${b} = true; } catch { ${b} = true; } }`,
130130
);
131131

132-
checks.push(
133-
`if (!${b}) { if (navigator.plugins && navigator.plugins.length === 0 && !/Firefox/.test(navigator.userAgent)) ${b} = true; try { if (navigator.plugins && window.PluginArray && !(navigator.plugins instanceof PluginArray)) ${b} = true; } catch {} if (navigator.languages && navigator.languages.length === 0) ${b} = true; }`,
134-
);
135-
136132
checks.push(
137133
`if (!${b}) { try { if (/HeadlessChrome|PhantomJS|SlimerJS/i.test(navigator.userAgent)) ${b} = true; if (/headless/i.test(navigator.appVersion || '')) ${b} = true; } catch {} }`,
138134
);

0 commit comments

Comments
 (0)