aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings/backup.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-03-02 11:18:09 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-03-02 11:18:09 +0200
commite0edb30efd51ac18167880d77c2dea11c73a1bfc (patch)
tree2601a53a7ad8f5defb83e3f0583907fd1a8ada9e /ext/bg/js/settings/backup.js
parentbd48d2f919e1387063c66ef91c40ec86a1131118 (diff)
fix Backend prepare issues in settings
Diffstat (limited to 'ext/bg/js/settings/backup.js')
-rw-r--r--ext/bg/js/settings/backup.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/settings/backup.js b/ext/bg/js/settings/backup.js
index acd21920..daa08c61 100644
--- a/ext/bg/js/settings/backup.js
+++ b/ext/bg/js/settings/backup.js
@@ -362,10 +362,10 @@ async function _onSettingsResetConfirmClick() {
// Setup
-window.addEventListener('DOMContentLoaded', () => {
+function backupInitialize() {
document.querySelector('#settings-export').addEventListener('click', _onSettingsExportClick, false);
document.querySelector('#settings-import').addEventListener('click', _onSettingsImportClick, false);
document.querySelector('#settings-import-file').addEventListener('change', _onSettingsImportFileChange, false);
document.querySelector('#settings-reset').addEventListener('click', _onSettingsResetClick, false);
document.querySelector('#settings-reset-modal-confirm').addEventListener('click', _onSettingsResetConfirmClick, false);
-}, false);
+}