From 74b9ee31fae96050625eaae1d5128b5d4a15a4b6 Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Tue, 29 Aug 2023 00:52:37 +0800 Subject: [PATCH] eslint-disable-line --- package.json | 8 +------- src/userscript.js | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index b10a96c..f0e953d 100644 --- a/package.json +++ b/package.json @@ -38,13 +38,7 @@ ], "globals": { "GM": true - }, - "no-eval": [ - "error", - { - "allowIndirect": true - } - ] + } }, "browserslist": { "production": [ diff --git a/src/userscript.js b/src/userscript.js index a2f1d64..168efa5 100644 --- a/src/userscript.js +++ b/src/userscript.js @@ -25,7 +25,7 @@ const init = async () => { // unsafeWindow.APP_NAME = process.env.REACT_APP_NAME; const ping = btoa(Math.random()).slice(3, 11); window.addEventListener(ping, handlePing); - window.eval(`(${injectScript})("${ping}")`); + window.eval(`(${injectScript})("${ping}")`); // eslint-disable-line return; }