Skip to content

Commit

Permalink
fix: export import lose tags problem. (#300)
Browse files Browse the repository at this point in the history
* fix export import problem

* remove and fix

* fix comma-spacing
  • Loading branch information
MarsZone authored Jun 6, 2020
1 parent 17e7d1e commit d2ba88a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const importFromText = (compatible, data) => new Promise((resolve, reject) => {
const exportToText = async compatible => {
const lists = await storage.getLists()
if (compatible) return lists.map(list => list.tabs.map(tab => tab.url + ' | ' + tab.title).join('\n')).join('\n\n')
return JSON.stringify(lists.map(i => _.pick(i, ['tabs', 'title', 'time'])), null, 4)
return JSON.stringify(lists.map(i => _.pick(i, ['tabs', 'title', 'time', 'tags', 'expand', 'pinned'])), null, 4)
}

const exportToFile = (text, {type, suffix}) => {
Expand Down

0 comments on commit d2ba88a

Please sign in to comment.