From 976a200ffc65e94f0246392f6b29505f1eb4f16c Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 30 May 2020 16:23:56 -0400 Subject: Backup update (#582) * Add function to assign all settings * Update how settings backups are restored * Remove page reload * Update profile index after importing --- ext/mixed/js/api.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/mixed/js') diff --git a/ext/mixed/js/api.js b/ext/mixed/js/api.js index 2d5ad9e7..075ea545 100644 --- a/ext/mixed/js/api.js +++ b/ext/mixed/js/api.js @@ -176,6 +176,10 @@ const api = (() => { return this._invoke('getSettings', {targets}); } + setAllSettings(value, source) { + return this._invoke('setAllSettings', {value, source}); + } + // Invoke functions with progress importDictionaryArchive(archiveContent, details, onProgress) { -- cgit v1.2.3