From 1418306606fbf0c06cf1c12e027cf159ce478e02 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Fri, 5 Jul 2019 13:42:53 +0200 Subject: Minor style fixes --- js/vapi-common.js | 8 ++++---- 1 file 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'); -- cgit v1.2.3