Skip to content

Commit

Permalink
Renamed modals.init() to more accurate .setup() ↞ [auto-sync from h…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Nov 29, 2024
1 parent 4b0b3dd commit 2d14e4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chatgpt/chatgpt-auto-talk/chatgpt-auto-talk.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
// @description:zu Dlala izimpendulo ze-ChatGPT ngokuzenzakalela
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.11.29
// @version 2024.11.29.1
// @license MIT
// @icon https://assets.chatgptautotalk.com/images/icons/openai/black/icon48.png?v=9f1ed3c
// @icon64 https://assets.chatgptautotalk.com/images/icons/openai/black/icon64.png?v=9f1ed3c
Expand Down Expand Up @@ -492,15 +492,15 @@
function siteAlert(title = '', msg = '', btns = '', checkbox = '', width = '') {
const alertID = chatgpt.alert(title, msg, btns, checkbox, width ),
alert = document.getElementById(alertID).firstChild
modals.init(alert) // add class + starry BG + drag handlers
modals.setup(alert) // add class + starry BG + drag handlers
return alert
}

// Define MODAL functions

const modals = {

init(modal) {
setup(modal) {
modal.classList.add('chatgpt-auto-talk-modal')
modal.onmousedown = modals.dragHandlers.mousedown
fillStarryBG(modal) // add stars
Expand Down

0 comments on commit 2d14e4c

Please sign in to comment.