Created
January 2, 2010 19:30
-
-
Save livingston/267628 to your computer and use it in GitHub Desktop.
hasFirebug - detects the activation status of firebug
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
/* hasFirebug.js, alternate version - detects the activation status of firebug | |
* @author Livingston Samuel | |
*/ | |
var hasFirebug = (function () { | |
return !!(window.console && window.console.firebug) | |
}()); | |
/* | |
hasFirebug => false, if Firebug is not installed or not activated for the current page | |
hasFirebug => true, if Firebug is enabled on the current page | |
*/ |
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
/* hasFirebug.js - detects the activation status of firebug | |
* @author Livingston Samuel | |
*/ | |
var hasFirebug = (function () { | |
return !!(document.getElementById("_firebugConsole")) | |
}()); | |
/* | |
hasFirebug => false, if Firebug is not installed or not activated for the current page | |
hasFirebug => true, if Firebug is enabled on the current page | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment