From d0c4152d99f264be6df5f49ab72d5453a7ed469c Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Mon, 27 Aug 2018 16:13:21 -0700 Subject: [PATCH] backup.js: Remove references to nonexistent i18n strings --- js/modules/backup.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/js/modules/backup.js b/js/modules/backup.js index 1f5c7ba49..5057f5a09 100644 --- a/js/modules/backup.js +++ b/js/modules/backup.js @@ -909,7 +909,7 @@ function exportConversations(db, options) { }); } -function getDirectory(options) { +function getDirectory(options = {}) { return new Promise((resolve, reject) => { const browserWindow = BrowserWindow.getFocusedWindow(); const dialogOptions = { @@ -1199,11 +1199,7 @@ function assembleLookup(db, storeName, keyFunction) { } function getDirectoryForExport() { - const options = { - title: i18n('exportChooserTitle'), - buttonLabel: i18n('exportButton'), - }; - return getDirectory(options); + return getDirectory(); } function createZip(zipDir, targetDir) { @@ -1324,7 +1320,6 @@ async function exportToDirectory(directory, options) { function getDirectoryForImport() { const options = { title: i18n('importChooserTitle'), - buttonLabel: i18n('importButton'), }; return getDirectory(options); }