diff --git a/backup/fileSaveLoad.js b/backup/fileSaveLoad.js index f835bb47..faa5d204 100644 --- a/backup/fileSaveLoad.js +++ b/backup/fileSaveLoad.js @@ -130,13 +130,16 @@ function importFromString(jsonString) { `) .join(''); - const box = messageBox({ + messageBox({ title: 'Finished importing styles', contents: report || 'Nothing was changed.', buttons: [t('confirmOK'), numChanged && t('undo')], - onclick: btnIndex => btnIndex == 1 && undo(), - }); - bindClick(box); + onshow: bindClick, + }).then(({button, enter, esc}) => { + if (button == 1) { + undo(); + } + }); resolve(numChanged); }); } diff --git a/manage.html b/manage.html index 7e39d6d6..9f5fc519 100644 --- a/manage.html +++ b/manage.html @@ -5,7 +5,6 @@ -