mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Added polyfils for IE console object.
This commit is contained in:
parent
e88768d621
commit
0486b610c0
1 changed files with 7 additions and 9 deletions
|
@ -1,15 +1,13 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
(function () {
|
(function () {
|
||||||
|
|
||||||
if (!window.console) {
|
window.console = 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(){};
|
||||||
if (!window.console.debug) {
|
window.console.debug = window.console.debug || function(){};
|
||||||
window.console.debug = function () {
|
window.console.warn = window.console.warn || function(){};
|
||||||
|
window.console.assert = window.console.assert || function(){};
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
window.alert = function (message) {
|
window.alert = function (message) {
|
||||||
window.Messenger().post(message);
|
window.Messenger().post(message);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue