}
} else {
// No tab selected, see how to add tab parameter
- if (window.location.search.startsWith('?')) {
+ if (window.location.search.indexOf('?') === 0) {
window.location.search += ('&' + issuesTab);
} else {
window.location.search += ('?' + issuesTab);
inputChanged: function() {
var metric = this.$('[name=metric]').val(),
- isDifferentialMetric = metric.startsWith('new_'),
+ isDifferentialMetric = metric.indexOf('new_') === 0,
periodSelect = this.$('[name=period]'),
period = periodSelect.val(),
optionZero = periodSelect.children('[value="0"]'),