Skip to content

Commit

Permalink
Fix bug in Firefox reported in #12
Browse files Browse the repository at this point in the history
  • Loading branch information
corollari committed Jan 27, 2019
1 parent b6699ab commit e5e1375
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions extension/app/js/extended/rotateDeck.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ export default function rotateDeck(DOMchange=true){
else{
let lastDeck=decksLeft.sort().filter((d)=>d>result.lastDeck).shift() || decksLeft[0];
ankiConnectInvoke("guiDeckReview", {name: lastDeck})
.then(()=>chrome.storage.local.set({lastDeck: lastDeck}, resolve))
.catch((e)=>{
window.location.href="chrome-search://local-ntp/local-ntp.html"
});
.then(()=>chrome.storage.local.set({lastDeck: lastDeck}, resolve));
}
}
});
Expand Down

0 comments on commit e5e1375

Please sign in to comment.