Skip to content

Commit

Permalink
Update viewer.js
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian <76214766+adrian2793@users.noreply.github.com>
  • Loading branch information
adrian2793 authored Feb 20, 2024
1 parent 5e834df commit 6e5269c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ twitch.onAuthorized(function(auth) {
});

function encrypt(id, object) {
document.getElementById(id).innerHTML = obj[object];
document.getElementById(id).text = obj[object];
}

window.addEventListener("load", (event) => {
addEventListener("DOMContentLoaded", (event) => {
encrypt("object", "object");
encrypt("config_heading", "config_heading");
encrypt("config_developer_mode_toogle_label", "config_developer_mode_toogle_label_content");
Expand Down

0 comments on commit 6e5269c

Please sign in to comment.