Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var alertFallback = false;
- if (typeof console === "undefined" || typeof console.log === "undefined") {
- console = {};
- if (alertFallback) {
- console.log = function (msg) {
- alert(msg);
- };
- } else {
- console.log = function () { };
- }
- }
Add Comment
Please, Sign In to add comment