Safari compat
This commit is contained in:
parent
09eba68e41
commit
f816ab853f
|
@ -13,5 +13,14 @@ var webui = angular.module('webui', [
|
|||
]);
|
||||
|
||||
$(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'])
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user