summaryrefslogtreecommitdiff
path: root/ext/bg/js/settings/backup.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-03-01 14:41:48 -0500
committerGitHub <noreply@github.com>2020-03-01 14:41:48 -0500
commita4b0a556d48f2b0ae4208f69fa651d2370529db5 (patch)
tree5a304f9be64829e07d311bbf51871aeda28fe10b /ext/bg/js/settings/backup.js
parent7c615244f40222584984157223944e6aa6448d13 (diff)
parent8e29da0c6bd0b80dc6c9e37a525a37258518c293 (diff)
Merge pull request #380 from toasted-nutbread/anki-templates-file
Load default Anki field templates from a file
Diffstat (limited to 'ext/bg/js/settings/backup.js')
-rw-r--r--ext/bg/js/settings/backup.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/bg/js/settings/backup.js b/ext/bg/js/settings/backup.js
index f4d622a4..e945d186 100644
--- a/ext/bg/js/settings/backup.js
+++ b/ext/bg/js/settings/backup.js
@@ -16,10 +16,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-/*global apiOptionsGetFull, apiGetEnvironmentInfo
+/*global apiOptionsGetFull, apiGetEnvironmentInfo, apiGetDefaultAnkiFieldTemplates
utilBackend, utilIsolate, utilBackgroundIsolate, utilReadFileArrayBuffer
-optionsGetDefault, optionsUpdateVersion
-profileOptionsGetDefaultFieldTemplates*/
+optionsGetDefault, optionsUpdateVersion*/
// Exporting
@@ -47,8 +46,7 @@ function _getSettingsExportDateString(date, dateSeparator, dateTimeSeparator, ti
async function _getSettingsExportData(date) {
const optionsFull = await apiOptionsGetFull();
const environment = await apiGetEnvironmentInfo();
-
- const fieldTemplatesDefault = profileOptionsGetDefaultFieldTemplates();
+ const fieldTemplatesDefault = await apiGetDefaultAnkiFieldTemplates();
// Format options
for (const {options} of optionsFull.profiles) {