safari workaround for workers. disable decals in dark mode. add client listener before starting client

This commit is contained in:
Stewart Allen 2022-01-18 13:41:11 -05:00
commit 08d76c8b2f
4 changed files with 10 additions and 7 deletions

View file

@ -59,6 +59,9 @@ function init() {
}, 100);
space.view.setZoom(zoomrev, zoomspd);
// reload stored space when worker is ready
moto.client.on('ready', restore_space);
// start worker
moto.client.start(`/code/mesh_work?${gapp.version}`);
@ -67,9 +70,6 @@ function init() {
// trigger ui building
call.ui_build();
// reload stored space
moto.client.on('ready', restore_space);
}
// restore space layout and view from previous session