Skip to content

Commit

Permalink
Fix noUI query
Browse files Browse the repository at this point in the history
  • Loading branch information
UX3D-haertl committed Oct 29, 2024
1 parent 686b6fa commit 2aad77a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/logic/uimodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ class UIModel
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const modelURL = urlParams.get("model");
const noUI = urlParams.get("noUI");
if (noUI !== null) {
this.app.uiVisible = false;
this.app.noUI = true;
}

this.scene = app.sceneChanged.pipe();
this.camera = app.cameraChanged.pipe();
Expand Down
8 changes: 8 additions & 0 deletions src/ui/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const appCreated = createApp({
uploadedHDR: undefined,
uiVisible: false,
isMobile: false,
noUi: false,


// these are handles for certain ui change related things
Expand All @@ -131,6 +132,13 @@ const appCreated = createApp({
this.uiVisible=false;
this.isMobile = true;
}
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const noUI = urlParams.get("noUI");
if (noUI !== null) {
this.uiVisible = false;
this.noUI = true;
}
},
mounted: function()
{
Expand Down

0 comments on commit 2aad77a

Please sign in to comment.