Skip to content

Commit

Permalink
Shortened notif init in notify() ↞ [auto-sync from `adamlui/chatg…
Browse files Browse the repository at this point in the history
…pt-apps/autoclear-chatgpt-history`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Sep 6, 2024
1 parent e7854ec commit 3995cf9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
// @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.8.29
// @version 2024.9.6
// @license MIT
// @icon https://media.autoclearchatgpt.com/images/icons/openai/black/icon48.png?a8868ef
// @icon64 https://media.autoclearchatgpt.com/images/icons/openai/black/icon64.png?a8868ef
Expand Down Expand Up @@ -540,8 +540,7 @@

// Show notification
chatgpt.notify(`${ config.appSymbol } ${ msg }`, position, notifDuration, shadow || chatgpt.isDarkMode() ? '' : 'shadow')
const notifs = document.querySelectorAll('.chatgpt-notif'),
notif = notifs[notifs.length -1]
const notif = document.querySelector('.chatgpt-notif:last-child')

// Append styled state word
if (foundState) {
Expand Down

0 comments on commit 3995cf9

Please sign in to comment.