mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 01:47:31 +02:00
adding undefined check on the toolbar object
This commit is contained in:
parent
e213fd6b5e
commit
4cad49f561
1 changed files with 3 additions and 1 deletions
|
@ -535,7 +535,9 @@ function shutdown() {
|
||||||
|
|
||||||
if (!HMD.active) {
|
if (!HMD.active) {
|
||||||
var toolbar = Toolbars.getToolbar(TOOLBAR_NAME);
|
var toolbar = Toolbars.getToolbar(TOOLBAR_NAME);
|
||||||
toolbar.writeProperty("visible", true);
|
if (typeof toolbar !== 'undefined') {
|
||||||
|
toolbar.writeProperty("visible", true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue