Skip to content

Commit 1c07d54

Browse files
committed
[Minor] Use textContent instead of innerHTML
1 parent fa1665d commit 1c07d54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

popup/cookies.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)