From 4209f860b8d914c703dff8d74201e25ed10c706d Mon Sep 17 00:00:00 2001 From: Anthony Tseng Date: Thu, 22 Feb 2018 20:12:08 -0800 Subject: [PATCH] Fix the filename exporter written to fix #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. --- app/browser/bookmarksExporter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/browser/bookmarksExporter.js b/app/browser/bookmarksExporter.js index 6923549207e..0d5a676eaec 100644 --- a/app/browser/bookmarksExporter.js +++ b/app/browser/bookmarksExporter.js @@ -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) }