Skip to content

Commit

Permalink
use config in util
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Apr 26, 2018
1 parent 946b5a5 commit c621cce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util/util.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { config } from "../global/global";

export const error = (message) => {
if (Moon.config.silent === false) {
if (config.silent === false) {
console.error("[Moon] ERROR: " + message);
}
};

0 comments on commit c621cce

Please sign in to comment.