fix help.js noisy log reference to undefined string#startsWith

This commit is contained in:
howard-stearns 2018-04-03 13:22:47 -07:00
parent 5151041e4a
commit f229e24e60

View file

@ -40,7 +40,7 @@
}
function onScreenChanged(type, url) {
onHelpScreen = type === "Web" && url.startsWith(HELP_URL);
onHelpScreen = type === "Web" && (url.indexOf(HELP_URL) === 0);
button.editProperties({ isActive: onHelpScreen });
}