From 3d655c6ff23eb0540a506a7ffd876ccf9949ea51 Mon Sep 17 00:00:00 2001 From: FutureX Date: Sun, 22 Apr 2018 23:09:31 +0300 Subject: [PATCH] Version 1.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Неправильно отображалось состояние расширениия --- js/background.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/background.js b/js/background.js index 49bc8f6..77678b0 100644 --- a/js/background.js +++ b/js/background.js @@ -11,6 +11,10 @@ chrome.storage.sync.get(['show_mode','simple_mode','true_mode'], function(items) choise=items['true_mode']; if(choise == undefined) choise = false; if(choise) chrome.browserAction.setBadgeText({text: "on"}); + + choise=items['auto_mode']; + if(choise == undefined) choise = false; + if(choise) chrome.browserAction.setBadgeText({text: "on"}); }); //Создать контекстное меню chrome.contextMenus.create({"title": "Показать ответы","onclick" : show});