Add beef.client.debug config property - Part of issue #862
Client-side debugging is disabled by default `beef.debug()` now only shows messages if `beef.client.debug` is true
This commit is contained in:
@@ -37,6 +37,7 @@ if(typeof beef === 'undefined' && typeof window.beef === 'undefined') {
|
||||
* @param: {string} the debug string to return
|
||||
*/
|
||||
debug: function(msg) {
|
||||
if (!<%= @client_debug %>) return;
|
||||
if (typeof console == "object" && typeof console.log == "function") {
|
||||
console.log(msg);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user