summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-09-10 21:32:07 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-09-15 15:58:19 -0400
commit8b7e293eaecb45918fb024eebb091017a0cdb695 (patch)
tree2f7027e3f68e3798928544c76b5d6af3093231eb /ext
parent34ddbf25fe671360d7c2604839ab037a0adea66b (diff)
Remove profile without popup when shift key is pressed
Also removes duplicate click listener.
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/settings-profiles.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/bg/js/settings-profiles.js b/ext/bg/js/settings-profiles.js
index 6e0e9953..6ff9dda5 100644
--- a/ext/bg/js/settings-profiles.js
+++ b/ext/bg/js/settings-profiles.js
@@ -173,7 +173,11 @@ async function onProfileAdd() {
await apiOptionsSave();
}
-async function onProfileRemove() {
+async function onProfileRemove(e) {
+ if (e.shiftKey) {
+ return await onProfileRemoveConfirm();
+ }
+
const optionsFull = await apiOptionsGetFull();
if (optionsFull.profiles.length <= 1) {
return;