Skip to content

Commit e9c96ad

Browse files
committed
Updated comments ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js-chrome-starter]
1 parent 0e57708 commit e9c96ad

File tree

1 file changed

+3
-3
lines changed
  • starters/chrome/extension/components

1 file changed

+3
-3
lines changed

starters/chrome/extension/components/modals.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ window.modals = {
1212
alert(title = '', msg = '', btns = '', checkbox = '', width = '') { // generic one from chatgpt.alert()
1313
const alertID = chatgpt.alert(title, msg, btns, checkbox, width),
1414
alert = document.getElementById(alertID).firstChild
15-
this.init(alert) // add class/starry bg
15+
this.init(alert) // add classes + starry bg
1616
return alert
1717
},
1818

1919
open(modalType) {
2020
const modal = this[modalType]() // show modal
2121
this.stack.unshift(modalType) // add to stack
22-
this.init(alert) // add class/starry bg
22+
this.init(alert) // add classes + starry bg
2323
this.observeRemoval(modal, modalType) // to maintain stack for proper nav
2424
},
2525

2626
init(modal) {
2727
if (!this.styles) this.stylize() // to init/append stylesheet
2828
modal.classList.add(this.class) ; modal.parentNode.classList.add(`${this.class}-bg`) // add classes
29-
dom.fillStarryBG(modal) // add Rising Stars bg
29+
dom.fillStarryBG(modal) // add starry bg
3030
},
3131

3232
stylize() {

0 commit comments

Comments
 (0)