Don't reset options on version update

This commit is contained in:
daniel-j 2020-10-19 13:06:45 +02:00
parent 0e7c98156d
commit 5dac8a5e24

View file

@ -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)