From d657665210afeab9041e922b0cc07827f73898cf Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sun, 7 Apr 2019 18:38:52 +0200 Subject: [PATCH] jsparser: lint --- package.json | 1 + src/client/app/widgets/utils.js | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index df8882ed..87dbed40 100644 --- a/package.json +++ b/package.json @@ -63,6 +63,7 @@ "through": "2.3.8", "uglifyify": "5.0.1", "utf8": "^3.0.0", + "webworkify": "^1.5.0", "ws": "6.2.1", "yargs": "13.2.2" }, diff --git a/src/client/app/widgets/utils.js b/src/client/app/widgets/utils.js index e2d3ee26..b4aecd33 100644 --- a/src/client/app/widgets/utils.js +++ b/src/client/app/widgets/utils.js @@ -117,7 +117,7 @@ module.exports = { // block requests sandbox.contentWindow.document.open() - sandbox.contentWindow.document.write(``) + sandbox.contentWindow.document.write('') sandbox.contentWindow.document.close() // init infinite loop guard @@ -129,9 +129,7 @@ module.exports = { var _Function = sandbox.contentWindow.Function, - parsers = {}, - timeouts = {}, - intervals = {} + parsers = {} sandbox.contentWindow.console = console sandbox.contentWindow.global = {} @@ -164,7 +162,7 @@ module.exports = { var ret, err, k var __VARS = {} - for (var k in context) { + for (k in context) { var index = contextKeys.indexOf(k) if (index !== -1) { contextValues[index] = context[k]