Skip to content

Commit 91990ad

Browse files
committed
style(browserAction): keep open on pin/unpin
In past we closed menu after toggling pin status, but now we have nice visual toggle switch and other uses of the switch do not close the menu. To unify the UX pin/unpin will keep the menu open.
1 parent f23bc2e commit 91990ad

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

add-on/src/popup/browser-action/store.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ module.exports = (state, emitter) => {
9393
}
9494
state.isPinning = false
9595
emitter.emit('render')
96-
window.close()
9796
})
9897

9998
emitter.on('unPin', async function unPinCurrentResource () {
@@ -112,7 +111,6 @@ module.exports = (state, emitter) => {
112111
}
113112
state.isUnPinning = false
114113
emitter.emit('render')
115-
window.close()
116114
})
117115

118116
async function handlePinError (errorMessageKey, error) {

0 commit comments

Comments
 (0)