diff --git a/js/init.js b/js/init.js index 25b44e0..8800839 100644 --- a/js/init.js +++ b/js/init.js @@ -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']) });