From 97c9f1c94bc823f057ce90263bca02ed9b744f57 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Fri, 7 Jul 2017 08:46:58 +0200 Subject: [PATCH] Added function lists.updateAll() to account for later loaded settings. --- lib/lists.js | 6 ++++++ pageAction/pageAction.js | 1 + 2 files changed, 7 insertions(+) diff --git a/lib/lists.js b/lib/lists.js index 3d45ca3..a9c2502 100644 --- a/lib/lists.js +++ b/lib/lists.js @@ -123,4 +123,10 @@ updateList(type); }; scope.update = updateList; + scope.updateAll = function updateAllLists(){ + updateList("white"); + updateList("ignore"); + updateList("black"); + updateStackList(); + }; }()); \ No newline at end of file diff --git a/pageAction/pageAction.js b/pageAction/pageAction.js index 90d465b..7d517b9 100644 --- a/pageAction/pageAction.js +++ b/pageAction/pageAction.js @@ -33,6 +33,7 @@ Promise.all([ } const lists = require("./lists"); + lists.updateAll(); const {parseErrorStack} = require("./callingStack"); var actionsCallbacks = { displayFullURL: function({url}){