diff --git a/.eslintrc b/.eslintrc index 982d8a35..be488d90 100644 --- a/.eslintrc +++ b/.eslintrc @@ -31,6 +31,7 @@ "wasm", "tlsn", "util", + "plugins", "webpack.config.js" ] } \ No newline at end of file diff --git a/plugins/reddit/index.js b/plugins/reddit/index.js index 85d6b51c..421e41e1 100644 --- a/plugins/reddit/index.js +++ b/plugins/reddit/index.js @@ -10,7 +10,7 @@ function gotoReddit() { } function start() { - console.log(JSON.stringify("TLSN start")); + console.log(JSON.stringify('TLSN start')); if (!isValidHost(Config.get('tabUrl'))) { gotoReddit(); Host.outputString(JSON.stringify(false)); @@ -26,9 +26,7 @@ function two() { // console.log(JSON.stringify(cookies)); // console.log("TLSN headers"); // console.log(JSON.stringify(headers)); - if ( - !headers['Authorization'] - ) { + if (!headers['Authorization']) { Host.outputString(JSON.stringify(false)); return; } @@ -94,4 +92,3 @@ function config() { } module.exports = { start, config, two, three }; -