diff --git a/app/manifest.json b/app/manifest.json index ab4abeb..ac2aea6 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -1,8 +1,8 @@ { "name": "BTCBRL", - "version": "2.1.1", + "version": "2.1.3", "manifest_version": 2, - "description": "This extension shows the current value of the BTCBRL (buy) / BTCUSD (sell) from different exchanges (Default Bitwage).", + "description": "This extension shows the current value of the BTCBRL (buy) / BTCUSD (sell) from different exchanges (Default Foxbit).", "default_locale": "en", "browser_action": { "default_icon": "images/icon.png", diff --git a/app/scripts.babel/background.js b/app/scripts.babel/background.js index 9d44ec4..8bbae1f 100644 --- a/app/scripts.babel/background.js +++ b/app/scripts.babel/background.js @@ -57,6 +57,7 @@ function setRates() { }; localStorage.setItem('rates', JSON.stringify(rates)); + setBadge(); }).catch(function (err) { chrome.extension.getBackgroundPage().console.error(err); chrome.browserAction.setBadgeText({ @@ -70,9 +71,9 @@ function setBadge() { if (rates) { rates = JSON.parse(rates); - if (rates.bitwage) { + if (rates.fox) { chrome.browserAction.setBadgeText({ - text: rates.bitwage + text: rates.fox }); } } @@ -96,7 +97,6 @@ function setRateFromBitwage() { } localStorage.setItem('rates', JSON.stringify(rates)); - setBadge(); }).catch(function (err) { chrome.extension.getBackgroundPage().console.error(err); });