Skip to content

Commit

Permalink
Condensed notify() ↞ [auto-sync from adamlui/chatgpt-apps/amazongpt]
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui authored and kudo-sync-bot committed Sep 28, 2024
1 parent cc4c162 commit de389e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chatgpt/amazongpt/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.9.28
// @version 2024.9.28.1
// @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 @@ -600,14 +600,14 @@
appDiv.append(alertP)
}

function notify(msg, position = '', notifDuration = '', shadow = 'shadow') {
function notify(msg, pos = '', notifDuration = '', shadow = 'shadow') {

// Strip state word to append styled one later
const foundState = menu.state.words.find(word => msg.includes(word))
if (foundState) msg = msg.replace(foundState, '')

// Show notification
chatgpt.notify(msg, position, notifDuration, shadow)
chatgpt.notify(msg, pos, notifDuration, shadow)
const notif = document.querySelector('.chatgpt-notif:last-child')

// Prepend app icon
Expand Down

0 comments on commit de389e9

Please sign in to comment.