Skip to content

Commit

Permalink
fix:editor use domcontentloaded (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schalk Neethling authored Mar 4, 2022
1 parent a6d787d commit d73801c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/js/editor-libs/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function addPostMessageListener() {
);
}

document.addEventListener("readystatechange", function () {
document.addEventListener("DOMContentLoaded", function () {
const theme = localStorage.getItem("theme");
if (theme !== null) {
document.querySelector("body").classList.add("theme-" + theme);
Expand Down

0 comments on commit d73801c

Please sign in to comment.