diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-12 12:49:21 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-12 12:49:21 +0300 |
commit | ebfc92f3490d961f81d0d54b98f2f89e728a7a22 (patch) | |
tree | cddc84a2ee0a9095d4ad51ea9d0cc755d6690647 /interface/js/main.js | |
parent | 7f169bd819f5b35cd3237308b3e4441cc02934ff (diff) | |
download | rspamd-ebfc92f3490d961f81d0d54b98f2f89e728a7a22.tar.gz rspamd-ebfc92f3490d961f81d0d54b98f2f89e728a7a22.zip |
[WebUI] Enable strict mode,
rename `interface` oblect as it is a reserved keyword,
declare $span and $tbody variables
Diffstat (limited to 'interface/js/main.js')
-rw-r--r-- | interface/js/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/interface/js/main.js b/interface/js/main.js index 515645667..bdc89dd5f 100644 --- a/interface/js/main.js +++ b/interface/js/main.js @@ -27,13 +27,14 @@ document.title = window.location.hostname + (window.location.pathname !== "/" ? window.location.pathname : "") + " - Rspamd Web Interface"; -define("d3.global", ["d3"], function (_) { +define("d3.global", ["d3"], function (_) { // eslint-disable-line strict d3 = _; // eslint-disable-line no-global-assign }); // Load main UI require(["domReady"], function (domReady) { + "use strict"; domReady(function () { require(["jquery", "d3", "app/rspamd"], function ($, d3, rspamd) { |