v1.11.0 fix console.groupCollapsed for nightly (bug 1136550)
This commit is contained in:
Родитель
e0470996fd
Коммит
87ac2a9161
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"author": "Mozilla",
|
||||
"name": "marketplace-core-modules",
|
||||
"version": "1.10.0",
|
||||
"version": "1.11.0",
|
||||
"ignore": [
|
||||
"bower.json",
|
||||
"LICENSE",
|
||||
|
|
14
log.js
14
log.js
|
@ -1,6 +1,11 @@
|
|||
define('log', ['storage', 'utils'], function(storage, utils) {
|
||||
|
||||
if (!('groupCollapsed' in window.console)) {
|
||||
/*
|
||||
Implementations and utils for for console logging.
|
||||
Notably, it stores logs for later reference.
|
||||
*/
|
||||
define('log',
|
||||
['storage', 'utils'],
|
||||
function(storage, utils) {
|
||||
if (!window.console.groupCollapsed) {
|
||||
window.console.groupCollapsed = window.console.group = window.console.log;
|
||||
window.console.groupEnd = function() {};
|
||||
}
|
||||
|
@ -46,8 +51,7 @@ define('log', ['storage', 'utils'], function(storage, utils) {
|
|||
|
||||
// TODO: Add colorification support here for browsers that support it.
|
||||
// *cough cough* not firefox *cough*
|
||||
|
||||
console[log_level].apply(console, args);
|
||||
window.console[log_level].apply(console, args);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче