Skip to content

Commit 9f5f947

Browse files
committed
WindowSizeTracker to app init
1 parent 3f4ec68 commit 9f5f947

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

services/static-webserver/client/source/class/osparc/Application.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,13 @@ qx.Class.define("osparc.Application", {
6161
return;
6262
}
6363

64-
const intlTelInput = osparc.wrapper.IntlTelInput.getInstance();
65-
intlTelInput.init();
64+
// libs
65+
osparc.wrapper.IntlTelInput.getInstance().init();
66+
osparc.wrapper.Three.getInstance().init();
6667

67-
const threejs = osparc.wrapper.Three.getInstance();
68-
threejs.init();
69-
70-
const announcementsTracker = osparc.announcement.Tracker.getInstance();
71-
announcementsTracker.startTracker();
68+
// trackers
69+
osparc.announcement.Tracker.getInstance().startTracker();
70+
osparc.WindowSizeTracker.getInstance().startTracker();
7271

7372
const webSocket = osparc.wrapper.WebSocket.getInstance();
7473
webSocket.addListener("connect", () => osparc.WatchDog.getInstance().setOnline(true));

services/static-webserver/client/source/class/osparc/desktop/MainPage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ qx.Class.define("osparc.desktop.MainPage", {
5454
this._add(navBar);
5555

5656
// Some resources request before building the main stack
57-
osparc.WindowSizeTracker.getInstance().startTracker();
5857
osparc.MaintenanceTracker.getInstance().startTracker();
5958
osparc.CookieExpirationTracker.getInstance().startTracker();
6059
osparc.NewUITracker.getInstance().startTracker();

services/static-webserver/client/source/class/osparc/viewer/MainPage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ qx.Class.define("osparc.viewer.MainPage", {
2929
navBar.populateLayout();
3030
this._add(navBar);
3131

32-
osparc.WindowSizeTracker.getInstance().startTracker();
3332
osparc.MaintenanceTracker.getInstance().startTracker();
3433

3534
const nodeViewer = new osparc.viewer.NodeViewer(studyId, viewerNodeId);

0 commit comments

Comments
 (0)