aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2019-07-05 13:42:53 +0200
committerAlessio Vanni <vannilla@firemail.cc>2019-07-05 13:42:53 +0200
commit1418306606fbf0c06cf1c12e027cf159ce478e02 (patch)
tree90f12bff01ab35e56a2800ab3f28374cf5ea8a06
parente1c3d731eb012a802ac94b849f7764aba4108366 (diff)
downloadematrix-1418306606fbf0c06cf1c12e027cf159ce478e02.tar.lz
ematrix-1418306606fbf0c06cf1c12e027cf159ce478e02.tar.xz
ematrix-1418306606fbf0c06cf1c12e027cf159ce478e02.zip
Minor style fixes
-rw-r--r--js/vapi-common.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/vapi-common.js b/js/vapi-common.js
index 14b1086..46225b1 100644
--- a/js/vapi-common.js
+++ b/js/vapi-common.js
@@ -36,7 +36,7 @@
self.vAPI = {};
}
- var vAPI = self.vAPI; // This is used also when vapi-core is not available
+ let vAPI = self.vAPI; // This is used also when vapi-core is not available
vAPI.setTimeout = vAPI.setTimeout || function (callback, delay, extra) {
return setTimeout(function (a) {
@@ -45,7 +45,7 @@
};
// http://www.w3.org/International/questions/qa-scripts#directions
- var setScriptDirection = function(language) {
+ let setScriptDirection = function(language) {
let dir =
['ar', 'he', 'fa', 'ps', 'ur'].indexOf(language) !== -1
? 'rtl'
@@ -59,7 +59,7 @@
return;
}
- var a = document.createElement('a');
+ let a = document.createElement('a');
a.href = details.url;
a.setAttribute('download', details.filename || '');
a.dispatchEvent(new MouseEvent('click'));
@@ -97,7 +97,7 @@
};
vAPI.i18n = (function () {
- var stringBundle =
+ let stringBundle =
Services.strings.createBundle('chrome://'
+ location.host
+ '/locale/messages.properties');