Created
November 10, 2017 15:43
-
-
Save catdad/bb2d4a2718af55624735d9ae4810347c to your computer and use it in GitHub Desktop.
Sometimes, this is all you need for some quick mobile debugging.
This file contains hidden or 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
<script src="//catdad.github.io/tiny.cdn/lib/toast/1.0.0/toast.min.js"></script> | |
<script> | |
(function () { | |
function logger(type) { | |
return function () { | |
toast[type]([].reduce.call(arguments, function (memo, arg) { | |
return memo + ' ' + arg.toString(); | |
}, '')); | |
}; | |
} | |
window.console = { | |
log: logger('log'), | |
error: logger('error') | |
}; | |
}()); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment