Skip to content

Commit

Permalink
Set Foxbit as default
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfc committed Oct 18, 2017
1 parent db7a1ab commit 3a7f8fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions app/scripts.babel/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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
});
}
}
Expand All @@ -96,7 +97,6 @@ function setRateFromBitwage() {
}

localStorage.setItem('rates', JSON.stringify(rates));
setBadge();
}).catch(function (err) {
chrome.extension.getBackgroundPage().console.error(err);
});
Expand Down

0 comments on commit 3a7f8fa

Please sign in to comment.