adding undefined check on the toolbar object

This commit is contained in:
amer cerkic 2019-06-10 10:42:31 -07:00
parent e213fd6b5e
commit 4cad49f561

View file

@ -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);
}
}
}