Skip to content

Commit

Permalink
Expanded formattedModalType in modals.observeRemoval() to include…
Browse files Browse the repository at this point in the history
…d `modalSubType` when available ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
  • Loading branch information
kudo-sync-bot committed Dec 6, 2024
1 parent 3953568 commit ecae79b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions greasemonkey/amazongpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @description Adds the magic of AI to Amazon shopping
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.12.6.2
// @version 2024.12.6.3
// @license MIT
// @icon https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png?v=0fddfc7
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon64.png?v=0fddfc7
Expand Down Expand Up @@ -680,7 +680,8 @@
},

observeRemoval(modal, modalType, modalSubType) { // to maintain stack for proper nav
log.caller = 'modals.observeRemoval()' ; const formattedModalType = log.toTitleCase(modalType)
log.caller = 'modals.observeRemoval()'
const formattedModalType = log.toTitleCase(`${modalType}${ modalSubType ? ' ' + modalSubType : '' }`)
log.debug(`Observing ${formattedModalType} modal...`)
const modalBG = modal.parentNode
new MutationObserver(([mutation], obs) => {
Expand Down

0 comments on commit ecae79b

Please sign in to comment.