Safari compat

This commit is contained in:
Nils Maier 2014-02-28 12:39:34 +01:00
parent 09eba68e41
commit f816ab853f

View File

@ -13,5 +13,14 @@ var webui = angular.module('webui', [
]); ]);
$(function() { $(function() {
if (!String.prototype.startsWith) {
Object.defineProperty(String.prototype, 'startsWith', {
enumerable: false, configurable: false, writable: false,
value: function (searchString, position) {
position = position || 0;
return this.indexOf(searchString, position) === position;
}
});
}
angular.bootstrap(document, ['webui']) angular.bootstrap(document, ['webui'])
}); });