fix recent refactoring bug

This commit is contained in:
Howard Stearns 2018-09-26 14:59:53 -07:00
parent e1659ed520
commit 6fdae83f1b

View file

@ -42,7 +42,7 @@ function AppUi(properties) {
that.additionalAppScreens = [];
that.checkIsOpen = function checkIsOpen(type, tabletUrl) { // Are we active? Value used to set isOpen.
// Actual url may have prefix or suffix.
return (type === that.currentVisibleScreenType) &&
return
that.currentVisibleUrl &&
((that.home.indexOf(that.currentVisibleUrl) > -1) ||
(that.additionalAppScreens.indexOf(that.currentVisibleUrl) > -1));