diff --git a/src/ext/lib/Settings.js b/src/ext/lib/Settings.js index c04b5ca..3624d4c 100644 --- a/src/ext/lib/Settings.js +++ b/src/ext/lib/Settings.js @@ -168,6 +168,10 @@ class Settings { this.set(this.active); } + async rollback() { + this.active = await this.get(); + } + getDefaultSettings() { return JSON.parse(JSON.stringify(this.default)); } diff --git a/src/options/controls-settings/add-edit-action-popup.vue b/src/options/controls-settings/add-edit-action-popup.vue index 0ba7d90..fdb6c2e 100644 --- a/src/options/controls-settings/add-edit-action-popup.vue +++ b/src/options/controls-settings/add-edit-action-popup.vue @@ -81,13 +81,23 @@ @set-shortcut="updateScopes('page', 'shortcut', $event)" /> - +
+ + +