mirror of
https://github.com/status-im/re-natal.git
synced 2025-01-24 19:39:32 +00:00
do not assume the log message is a string. fixes #29
This commit is contained in:
parent
09bfa49d34
commit
7fbfc7c293
@ -156,9 +156,9 @@ function interceptRequire() {
|
||||
|
||||
function compileWarningsToYellowBox() {
|
||||
var log = window.console.log;
|
||||
var compileWarningRx = /Figwheel: Compile Warning/;
|
||||
var compileWarningRx = /Figwheel: Compile/;
|
||||
window.console.log = function (msg) {
|
||||
if (msg.match(compileWarningRx) != null) {
|
||||
if (compileWarningRx.test(msg)) {
|
||||
console.warn(msg);
|
||||
} else {
|
||||
log.call(window.console, msg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user