Skip to content

Commit

Permalink
fix: switch button
Browse files Browse the repository at this point in the history
  • Loading branch information
rawchen committed Aug 22, 2022
1 parent 6c57ba6 commit 3b1296a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@
}
}

if (window.localStorage.getItem("thumbnailState") === "1") {
document.getElementById('thumbnail-toggle').setAttribute("name", "more");
} else if (window.localStorage.getItem("thumbnailState") === "0") {
document.getElementById('thumbnail-toggle').setAttribute("name", "apps");
}

document.addEventListener('DOMContentLoaded', () => {
document.getElementById('arrow-back').style.color = '#818181';
if ("[[${type}]]" === "folder") {
Expand Down

0 comments on commit 3b1296a

Please sign in to comment.