From 9c2acd5cc92cef3f2728d62192cc0865d2cdaecc Mon Sep 17 00:00:00 2001 From: eight Date: Fri, 1 Sep 2017 14:36:13 +0800 Subject: [PATCH] Fix: remove unused variable 'event' --- js/script-loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/script-loader.js b/js/script-loader.js index feb56bdf..38a9c648 100644 --- a/js/script-loader.js +++ b/js/script-loader.js @@ -22,7 +22,7 @@ var loadScript = (function () { cache.set(path, script); }; - script.onerror = event => { + script.onerror = () => { reject(new Error(`failed to load script: ${path}`)); script.onload = null; script.onerror = null;