Skip to content

Commit

Permalink
Merge branch 'hotfix-mainPath'
Browse files Browse the repository at this point in the history
  • Loading branch information
mika committed Mar 8, 2020
2 parents aea8522 + e022426 commit 5a59724
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/js/content/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@

const filename = T.joinPath(storageInfo.infoFileFolder, storageInfo.infoFileName);
_tasks.unshift(Task.createInfoTask(filename, info))
} else {
const mainFileTask = _tasks.find(it => it.taskType === 'mainFileTask')
if (mainFileTask) {
// We assume infoFileFolder is same as mainFileFolder.
const infoFileFolder = storageInfo.mainFileFolder;
info.mainPath = T.calcPath(infoFileFolder, mainFileTask.filename);
} else {
throw Error("Can not find mainFileTask");
}
}

const clipping = {
Expand Down

0 comments on commit 5a59724

Please sign in to comment.