Skip to content

Commit

Permalink
Fix the filename exporter written to
Browse files Browse the repository at this point in the history
fix brave#13255

Auditors: @bsclifton

Test Plan:
1. Set up some bookmarks on a clean profile
2. Menu->Bookmarks->Export bookmarks
3. The default path should be your download path
4. The dialog should have extension option with html
5. Default extension is html
6. Click Save on the dialog.
  • Loading branch information
darkdh authored and ryanml committed Feb 27, 2018
1 parent a2f6905 commit 4209f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/browser/bookmarksExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const showDialog = (state) => {
personal = createBookmarkArray(state)
other = createBookmarkArray(state, -1, false)
try {
fs.writeFileSync(fileName, createBookmarkHTML(personal, other))
fs.writeFileSync(fileNames[0], createBookmarkHTML(personal, other))
} catch (e) {
console.log('Error exporting bookmarks: ', e)
}
Expand Down

0 comments on commit 4209f86

Please sign in to comment.