Skip to content

Commit

Permalink
Improved observeRemoval() stack comment ↞ [auto-sync from https://g…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Dec 21, 2024
1 parent df4ede3 commit 00e80fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starters/chrome/extension/components/modals.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ window.modals = {
new MutationObserver(([mutation], obs) => {
mutation.removedNodes.forEach(removedNode => { if (removedNode == modalBG) {
if (this.stack[0] == modalType) { // new modal not launched, implement nav back logic
this.stack.shift() // remove this modal type from stack
this.stack.shift() // remove this modal type from stack 1st
const prevModalType = this.stack[0]
if (prevModalType) { // open it
this.stack.shift() // remove type from stack since re-added on open
Expand Down

0 comments on commit 00e80fc

Please sign in to comment.