Misskey CW toggle: -const +let

This commit is contained in:
tastytea 2022-05-17 01:23:07 +02:00
parent e9b803c50c
commit 09885123b3
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 1 additions and 2 deletions

View File

@ -35,8 +35,7 @@ function toggle() {
// Add a “Toggle all CWs”-button.
function add_button() {
// If there is no element named “column-1”, use the footer.
const root = document.getElementsByClassName("_block _isolated note")[0];
let root = document.getElementsByClassName("_block _isolated note")[0];
if (root === undefined) {
console.error("No suitable parent-element found.");
return;