mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
Hope can fix on IE, not tested
This commit is contained in:
19
htdocs/portal/assets/js/ie-console.js
Normal file
19
htdocs/portal/assets/js/ie-console.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// var ie_console_alertFallback = true;
|
||||
// var ie_console_divFallback = true;
|
||||
|
||||
if (typeof console === "undefined" || typeof console.log === "undefined") {
|
||||
console = {};
|
||||
|
||||
if (typeof ie_console_divFallback != "undefined") {
|
||||
console.log = function(msg) {
|
||||
$('#ie_console_debug_div').append(msg);
|
||||
$('#ie_console_debug_div').append("<br>");
|
||||
}
|
||||
} else if (typeof ie_console_alertFallback != "undefined" ) {
|
||||
console.log = function(msg) {
|
||||
alert(msg);
|
||||
};
|
||||
} else {
|
||||
console.log = function() {};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user