Created
November 25, 2017 21:21
-
-
Save kcmr/480ce8d8097ceb9a84a1ed5dec4388cd to your computer and use it in GitHub Desktop.
Log utils
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
(function() { | |
'use strict'; | |
function clearStyleWarnings(fn) { | |
return function(first, ...rest) { | |
if (!first.match('Could not find style data')) { | |
fn.call(this, first, ...rest); | |
} | |
} | |
} | |
console.warn = clearStyleWarnings(console.warn); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment