mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
moved console polyfills to polyfills.js
This commit is contained in:
parent
bb72308afa
commit
eba9fab518
4 changed files with 12 additions and 12 deletions
|
@ -1,3 +1,12 @@
|
|||
window.console = window.console || {};
|
||||
window.console.log = window.console.log || function(){};
|
||||
window.console.group = window.console.group || function(){};
|
||||
window.console.groupEnd = window.console.groupEnd || function(){};
|
||||
window.console.debug = window.console.debug || function(){};
|
||||
window.console.warn = window.console.warn || function(){};
|
||||
window.console.assert = window.console.assert || function(){};
|
||||
|
||||
|
||||
if (!String.prototype.startsWith) {
|
||||
Object.defineProperty(String.prototype, 'startsWith', {
|
||||
enumerable: false,
|
||||
|
@ -29,4 +38,4 @@ if(!('contains' in String.prototype))
|
|||
String.prototype.contains = function(str, startIndex) {
|
||||
return -1 !== String.prototype.indexOf.call(this, str, startIndex);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue