KEYCLOAK-1505 Fix JS error in admin console on old browsers

This commit is contained in:
mposolda 2015-07-09 10:20:55 +02:00
parent afbf1cc33f
commit bd22d30674

View file

@ -806,7 +806,7 @@ module.controller('UserFederationMapperListCtrl', function($scope, $location, No
$scope.hasAnyMapperTypes = false;
for (var property in mapperTypes) {
if (!(property.startsWith('$'))) {
if (!(property.indexOf('$') === 0)) {
$scope.hasAnyMapperTypes = true;
break;
}