| Index: res/js/common.js
|
| diff --git a/res/js/common.js b/res/js/common.js
|
| index ddc35541b25a86a9ec19eea1970227eece98ae04..8bb2b9d57e122a37f8efbc53ab4951b8d2cee8b5 100644
|
| --- a/res/js/common.js
|
| +++ b/res/js/common.js
|
| @@ -583,5 +583,14 @@ this.sk = this.sk || function() {
|
| });
|
| }
|
|
|
| + // Polyfill for String.startsWith from
|
| + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith#Polyfill
|
| + // returns true iff the string starts with the given prefix
|
| + if (!String.prototype.startsWith) {
|
| + String.prototype.startsWith = function(searchString, position) {
|
| + position = position || 0;
|
| + return this.indexOf(searchString, position) === position;
|
| + };
|
| + }
|
| return sk;
|
| }();
|
|
|