MobileApp/www/js/polyfills.js
Skylar Ittner bdb87a25bf Add manual setup, add header/status bar colors, add polyfill for String.prototype.startsWith, add setting button to open Portal,
add .mobile-app-hide class to injected CSS, fix a bunch of bugs,
improve layout of app loading spinner, improve overall smoothness,
test and debug on Android 4.4.2
2017-07-03 03:41:58 -06:00

7 lines
196 B
JavaScript

// https://stackoverflow.com/a/33106217
if (typeof String.prototype.startsWith != 'function') {
String.prototype.startsWith = function (str) {
return this.indexOf(str) === 0;
};
}