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/chatgpt-widescreen/edge`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Sep 6, 2024
1 parent 390081b commit 724e198
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions chrome/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,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
3 changes: 1 addition & 2 deletions edge/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,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
5 changes: 2 additions & 3 deletions greasemonkey/chatgpt-widescreen-mode.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
// @description:zu Engeza izinhlobo zezimodi ze-Widescreen + Fullscreen ku-ChatGPT ukuze kube nokubonakala + ukuncitsha ukusukela
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.9.5
// @version 2024.9.6
// @license MIT
// @compatible chrome
// @compatible firefox
Expand Down Expand Up @@ -526,8 +526,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
3 changes: 1 addition & 2 deletions opera/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,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 724e198

Please sign in to comment.