File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ async function grabCookies() {
138138 } ;
139139
140140 const cookieJson = JSON . stringify ( authConfig , null , 2 ) ;
141- jsonElement . innerHTML = cookieJson ;
141+ jsonElement . textContent = cookieJson ;
142142
143143 /**
144144 * Use yee yee ghetto ass method as a fallback
@@ -150,15 +150,15 @@ async function grabCookies() {
150150 try {
151151 await clipboardWriteText ( cookieJson ) ;
152152
153- copyBtn . innerHTML = 'Copied to clipboard!' ;
153+ copyBtn . textContent = 'Copied to clipboard!' ;
154154 copyBtn . setAttribute ( 'disabled' , '1' ) ;
155155 }
156156 catch ( err ) {
157157 console . error ( err ) ;
158158 }
159159
160160 setTimeout ( ( ) => {
161- copyBtn . innerHTML = oldBtnText ;
161+ copyBtn . textContent = oldBtnText ;
162162 copyBtn . removeAttribute ( 'disabled' ) ;
163163 } , 2500 ) ;
164164 } ) ;
You can’t perform that action at this time.
0 commit comments