Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MBetterc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mbetter
MBetterc
Commits
f25a1c35
Commit
f25a1c35
authored
Feb 20, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more logging to initialize() for debugging template loading
parent
e9c30c8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
overlay-controller.js
web/overlay-controller.js
+7
-3
No files found.
web/overlay-controller.js
View file @
f25a1c35
...
@@ -89,10 +89,11 @@ class WebOverlayController {
...
@@ -89,10 +89,11 @@ class WebOverlayController {
*/
*/
async
initialize
()
{
async
initialize
()
{
if
(
this
.
initialized
)
{
if
(
this
.
initialized
)
{
console
.
log
(
'[OverlayController] Already initialized, skipping'
);
return
;
return
;
}
}
this
.
log
(
'Initializing web overlay controller
'
);
console
.
log
(
'[OverlayController] Starting initialization...
'
);
// Set up video event listeners for synchronization
// Set up video event listeners for synchronization
if
(
this
.
videoElement
)
{
if
(
this
.
videoElement
)
{
...
@@ -105,7 +106,7 @@ class WebOverlayController {
...
@@ -105,7 +106,7 @@ class WebOverlayController {
// Set up message listener for iframe communication
// Set up message listener for iframe communication
window
.
addEventListener
(
'message'
,
this
.
onIframeMessage
.
bind
(
this
));
window
.
addEventListener
(
'message'
,
this
.
onIframeMessage
.
bind
(
this
));
this
.
log
(
'
Message listener set up for iframe communication'
);
console
.
log
(
'[OverlayController]
Message listener set up for iframe communication'
);
// Set up resize observer for overlay scaling
// Set up resize observer for overlay scaling
this
.
setupResizeObserver
();
this
.
setupResizeObserver
();
...
@@ -117,13 +118,16 @@ class WebOverlayController {
...
@@ -117,13 +118,16 @@ class WebOverlayController {
this
.
startRealTimeUpdates
();
this
.
startRealTimeUpdates
();
// Load default template
// Load default template
console
.
log
(
'[OverlayController] Loading default template...'
);
await
this
.
loadTemplate
(
'default'
);
await
this
.
loadTemplate
(
'default'
);
console
.
log
(
'[OverlayController] Default template loaded'
);
this
.
initialized
=
true
;
this
.
initialized
=
true
;
this
.
log
(
'Initialization complete
'
);
console
.
log
(
'[OverlayController] Initialization complete, loading template config...
'
);
// Load template configuration and start rotation
// Load template configuration and start rotation
await
this
.
loadTemplateConfig
();
await
this
.
loadTemplateConfig
();
console
.
log
(
'[OverlayController] Template config loaded'
);
// Emit initialized event
// Emit initialized event
this
.
emit
(
'initialized'
);
this
.
emit
(
'initialized'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment