mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:47:30 +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) {
|
||||
var toolbar = Toolbars.getToolbar(TOOLBAR_NAME);
|
||||
toolbar.writeProperty("visible", true);
|
||||
if (typeof toolbar !== 'undefined') {
|
||||
toolbar.writeProperty("visible", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue