eslint-disable-line

This commit is contained in:
Gabe Yuan
2023-08-29 00:52:37 +08:00
parent 64cd55fe58
commit 74b9ee31fa
2 changed files with 2 additions and 8 deletions

View File

@@ -38,13 +38,7 @@
], ],
"globals": { "globals": {
"GM": true "GM": true
}, }
"no-eval": [
"error",
{
"allowIndirect": true
}
]
}, },
"browserslist": { "browserslist": {
"production": [ "production": [

View File

@@ -25,7 +25,7 @@ const init = async () => {
// unsafeWindow.APP_NAME = process.env.REACT_APP_NAME; // unsafeWindow.APP_NAME = process.env.REACT_APP_NAME;
const ping = btoa(Math.random()).slice(3, 11); const ping = btoa(Math.random()).slice(3, 11);
window.addEventListener(ping, handlePing); window.addEventListener(ping, handlePing);
window.eval(`(${injectScript})("${ping}")`); window.eval(`(${injectScript})("${ping}")`); // eslint-disable-line
return; return;
} }