aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/assets.js2
-rw-r--r--js/browsercache.js4
-rw-r--r--js/dashboard-common.js2
-rw-r--r--js/i18n.js4
-rw-r--r--js/liquid-dict.js2
-rw-r--r--js/profiler.js2
-rw-r--r--js/start.js4
-rw-r--r--js/xal.js2
8 files changed, 15 insertions, 7 deletions
diff --git a/js/assets.js b/js/assets.js
index 37a691a..7190ca0 100644
--- a/js/assets.js
+++ b/js/assets.js
@@ -102,7 +102,7 @@ api.fetchText = function(url, onLoad, onError) {
var onErrorReceived = function() {
this.onload = this.onerror = this.ontimeout = null;
- ηMatrix.logger.writeOne('', 'error', errorCantConnectTo.replace('{{msg}}', actualUrl));
+ ηMatrix.logger.writeOne('', 'error', errorCantConnectTo.replace('{{url}}', actualUrl));
onError.call(null, { url: url, content: '' });
};
diff --git a/js/browsercache.js b/js/browsercache.js
index be9c116..20a53f2 100644
--- a/js/browsercache.js
+++ b/js/browsercache.js
@@ -23,12 +23,12 @@
/* global ηMatrix */
+'use strict';
+
/******************************************************************************/
(function() {
-'use strict';
-
/******************************************************************************/
// Browser data jobs
diff --git a/js/dashboard-common.js b/js/dashboard-common.js
index 21a0e8c..ed9f943 100644
--- a/js/dashboard-common.js
+++ b/js/dashboard-common.js
@@ -21,6 +21,8 @@
uMatrix Home: https://github.com/gorhill/uMatrix
*/
+'use strict';
+
/******************************************************************************/
uDom.onLoad(function() {
diff --git a/js/i18n.js b/js/i18n.js
index 5f92673..0496eee 100644
--- a/js/i18n.js
+++ b/js/i18n.js
@@ -23,6 +23,8 @@
/* global vAPI, uDom */
+'use strict';
+
/******************************************************************************/
// This file should always be included at the end of the `body` tag, so as
@@ -30,8 +32,6 @@
(function() {
-'use strict';
-
/******************************************************************************/
// https://github.com/gorhill/uBlock/issues/2084
diff --git a/js/liquid-dict.js b/js/liquid-dict.js
index f5cd547..795fea6 100644
--- a/js/liquid-dict.js
+++ b/js/liquid-dict.js
@@ -21,6 +21,8 @@
uMatrix Home: https://github.com/gorhill/uMatrix
*/
+'use strict';
+
/******************************************************************************/
ηMatrix.LiquidDict = (function() {
diff --git a/js/profiler.js b/js/profiler.js
index b6f05d7..277eba3 100644
--- a/js/profiler.js
+++ b/js/profiler.js
@@ -21,6 +21,8 @@
uMatrix Home: https://github.com/gorhill/uMatrix
*/
+'use strict';
+
/******************************************************************************/
var quickProfiler = (function() {
diff --git a/js/start.js b/js/start.js
index 9f88e42..65bba4a 100644
--- a/js/start.js
+++ b/js/start.js
@@ -21,6 +21,8 @@
uMatrix Home: https://github.com/gorhill/uMatrix
*/
+'use strict';
+
// ORDER IS IMPORTANT
/******************************************************************************/
@@ -29,8 +31,6 @@
(function() {
-'use strict';
-
/******************************************************************************/
var ηm = ηMatrix;
diff --git a/js/xal.js b/js/xal.js
index 17c98f3..1ac06b7 100644
--- a/js/xal.js
+++ b/js/xal.js
@@ -23,6 +23,8 @@
/* global chrome, ηMatrix */
+'use strict';
+
/******************************************************************************/
ηMatrix.XAL = (function(){