Skip to content

Commit

Permalink
Don't reset options on version update
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-j committed Oct 19, 2020
1 parent 0e7c981 commit 5dac8a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,11 @@ function createEpub (model) {

function openStory (id) {
chrome.storage.sync.get(['ffcOptions', 'version'], function (result) {
let options = result.ffcOptions
const options = result.ffcOptions
// Reset options on new version
if (result.version !== FIMFIC2EPUB_VERSION) {
options = {}
}
// if (result.version !== FIMFIC2EPUB_VERSION) {
// options = {}
// }

if (!ffc) {
ffc = new FimFic2Epub(id, options)
Expand Down

0 comments on commit 5dac8a5

Please sign in to comment.