From 6fdaaaba560ea8e603684f91fd7a82fd1c3ece21 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Mon, 18 Dec 2017 14:12:47 +0200 Subject: [PATCH] Code cleaning --- keepassxc-browser/background/page.js | 2 +- keepassxc-browser/options/options.html | 2 +- keepassxc-browser/popups/popup.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/keepassxc-browser/background/page.js b/keepassxc-browser/background/page.js index a806ed1..fb33b3f 100644 --- a/keepassxc-browser/background/page.js +++ b/keepassxc-browser/background/page.js @@ -105,7 +105,7 @@ page.removePageInformationFromNotExistingTabs = function() { let rand = Math.floor(Math.random()*1001); if (rand === 28) { browser.tabs.query({}).then(function(tabs) { - let $tabIds = {}; + let $tabIds = []; const $infoIds = Object.keys(page.tabs); for (const t of tabs) { diff --git a/keepassxc-browser/options/options.html b/keepassxc-browser/options/options.html index 81c57da..6749f9d 100644 --- a/keepassxc-browser/options/options.html +++ b/keepassxc-browser/options/options.html @@ -138,7 +138,7 @@

- Your running version of KeePassXC: + You are running version of KeePassXC:
Latest available version of KeePassXC: diff --git a/keepassxc-browser/popups/popup.js b/keepassxc-browser/popups/popup.js index 276f8e8..b4afc42 100644 --- a/keepassxc-browser/popups/popup.js +++ b/keepassxc-browser/popups/popup.js @@ -66,8 +66,9 @@ $(function() { $('#redetect-fields-button').click(function() { browser.tabs.query({"active": true, "currentWindow": true}).then(function(tabs) { - if (tabs.length === 0) + if (tabs.length === 0) { return; // For example: only the background devtools or a popup are opened + } let tab = tabs[0]; browser.tabs.sendMessage(tab.id, {