Skip to content

Commit

Permalink
[TASK] Move LuxPageOverviewObject to global scope (window)
Browse files Browse the repository at this point in the history
  • Loading branch information
deoostfrees committed Nov 6, 2024
1 parent 07a7d01 commit 8843359
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Resources/Private/Build/JavaScript/Backend/Module.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ const LuxBackend = function() {
parent.innerHTML = html;
window.LuxDiagramObject.initialize(parent);
if (parent.querySelector('[data-lux-toggle]') !== null) {
LuxPageOverviewObject.initialize(parent);
window.LuxPageOverviewObject.initialize(parent);
}
asynchronousImageLoading(parent);
})
Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Build/JavaScript/Backend/PageOverview.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,5 @@ const LuxPageOverview = function() {
};
};

var LuxPageOverviewObject = new LuxPageOverview();
LuxPageOverviewObject.initialize();
window.LuxPageOverviewObject = new LuxPageOverview();
window.LuxPageOverviewObject.initialize();
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Lux/Module.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Lux/PageOverview.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8843359

Please sign in to comment.