dirs (owner)

Revisions

gist: 161381 Download_button fork
public
Public Clone URL: git://gist.github.com/161381.git
Embed All Files: show embed
widget_bugkiller.js #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// i've to test somethings in my widget that are hard to replicate or write tests for it
 
// we didn't want any error anoing our client and the cool guys that visits our client site
try {
 
var ninja = {
    log: function(m) {
        if (window.location.href.match(/_bugkiller_/)) {
            console.log(m);
        }
    }
}
 
// so we only log if client *really* want at point of use http://theocoolsite.com/#_bugkiller_ in the URL
ninja.log("in");
 
} catch(e){};