Skip to content

Commit

Permalink
Fixes #549 - assinging window.onload to a new JS function causes the …
Browse files Browse the repository at this point in the history
…visual editor to silently stop working.
  • Loading branch information
HeyJoel committed Sep 21, 2024
1 parent 2b1ba88 commit 2b5c4b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ Cofoundry.visualEditor = (function () {
}
}

window.onload = function () {
window.addEventListener('load', function () {
// pageResponseData object is a serialized object inserted into the page
_internal.model = Cofoundry.PageResponseData;

Expand All @@ -643,11 +643,11 @@ Cofoundry.visualEditor = (function () {
_internal.bindGui();
_internal.bindToolbar();
}
}
});

// Return public API
return {
toolBar: _toolBar
}

})();
})();
Loading

0 comments on commit 2b5c4b8

Please sign in to comment.