@@ -181,7 +181,7 @@ const chatgpt = {
181
181
modalStyle . setAttribute ( 'last-updated' , thisUpdated . toString ( ) )
182
182
document . head . append ( modalStyle )
183
183
}
184
- modalStyle . innerText = ( // update prev/new style contents
184
+ modalStyle . textContent = ( // update prev/new style contents
185
185
`.chatgpt-modal { /* vars */
186
186
--transition: opacity 0.65s cubic-bezier(.165,.84,.44,1), /* for fade-in */
187
187
transform 0.55s cubic-bezier(.165,.84,.44,1) ; /* for move-in */
@@ -271,7 +271,7 @@ const chatgpt = {
271
271
}
272
272
273
273
// Insert text into elems
274
- modalTitle . innerText = title || '' ; modalMessage . innerText = msg || '' ; chatgpt . renderHTML ( modalMessage )
274
+ modalTitle . textContent = title || '' ; modalMessage . textContent = msg || '' ; chatgpt . renderHTML ( modalMessage )
275
275
276
276
// Create/append buttons (if provided) to buttons div
277
277
const modalButtons = document . createElement ( 'div' )
@@ -1300,7 +1300,7 @@ const chatgpt = {
1300
1300
const notificationDiv = document . createElement ( 'div' ) // make div
1301
1301
notificationDiv . id = Math . floor ( chatgpt . randomFloat ( ) * 1000000 ) + Date . now ( )
1302
1302
notificationDiv . classList . add ( 'chatgpt-notif' )
1303
- notificationDiv . innerText = msg // insert msg
1303
+ notificationDiv . textContent = msg // insert msg
1304
1304
document . body . append ( notificationDiv ) // insert into DOM
1305
1305
1306
1306
// Create/append close button
@@ -1333,7 +1333,7 @@ const chatgpt = {
1333
1333
notifStyle . setAttribute ( 'last-updated' , thisUpdated . toString ( ) )
1334
1334
document . head . append ( notifStyle )
1335
1335
}
1336
- notifStyle . innerText = ( // update prev/new style contents
1336
+ notifStyle . textContent = ( // update prev/new style contents
1337
1337
'.chatgpt-notif {'
1338
1338
+ 'font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",'
1339
1339
+ '"Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif ;'
0 commit comments