Skip to content

Commit

Permalink
Condensed notify() ↞ [auto-sync from adamlui/chatgpt-apps]
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 9d99e35 commit b02c4de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions greasemonkey/googlegpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.9.28
// @version 2024.9.28.1
// @license MIT
// @icon https://media.googlegpt.io/images/icons/googlegpt/black/icon48.png?8652a6e
// @icon64 https://media.googlegpt.io/images/icons/googlegpt/black/icon64.png?8652a6e
Expand Down Expand Up @@ -967,14 +967,14 @@
appDiv.append(alertP)
}

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

// Strip state word to append colored 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 b02c4de

Please sign in to comment.