aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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');