-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pooya parsa
committed
Feb 24, 2019
1 parent
261d7a6
commit 0049c4b
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import Consola from './consola.js' | ||
import BrowserReporter from './reporters/browser.js' | ||
|
||
if (!window.consola) { | ||
// Create new consola instance | ||
window.consola = new Consola({ | ||
function createConsola () { | ||
return new Consola({ | ||
reporters: [ | ||
new BrowserReporter() | ||
] | ||
}) | ||
} | ||
|
||
export default window.consola | ||
export default window.consola || createConsola() |