Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
fix(serve): fix --consolelogs/--serverlogs usage with Cordova console…
Browse files Browse the repository at this point in the history
… plugin

fixes ionic-team/ionic-cli#2243
  • Loading branch information
imhoffd committed Aug 15, 2017
1 parent 8f71e35 commit 8e64407
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/ion-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ window.IonicDevServer = {
})();
}

for (var consoleType in console) {
if (console.hasOwnProperty(consoleType) && typeof console[consoleType] === 'function') {
patchConsole(consoleType);
}
// https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-console/#supported-methods
var consoleFns = ['log', 'error', 'exception', 'warn', 'info', 'debug', 'assert', 'dir', 'dirxml', 'time', 'timeEnd', 'table'];
for (var i in consoleFns) {
patchConsole(consoleFns[i]);
}
},

Expand Down

0 comments on commit 8e64407

Please sign in to comment.