Fixed isDebug not work in beef.js (#2013)
* fixed isDebug not work * fixed JQMIGRATE print extra message to console * fix debug mode not work * testing approval process * Update github_actions.yml Co-authored-by: kinovir <kinovir@gmail.com> Co-authored-by: t3hp0rP <github@pr0ph3t.com> Co-authored-by: wheatley <wheatand@gmail.com>
This commit is contained in:
@@ -39,7 +39,7 @@ if(typeof beef === 'undefined' && typeof window.beef === 'undefined') {
|
||||
*/
|
||||
debug: function(msg) {
|
||||
isDebug = '<%= @client_debug %>'
|
||||
if (typeof console == "object" && typeof console.log == "function" && isDebug.localeCompare("true")) {
|
||||
if (typeof console == "object" && typeof console.log == "function" && isDebug === 'true') {
|
||||
var currentdate = new Date();
|
||||
var pad = function(n){return ("0" + n).slice(-2);}
|
||||
var datetime = currentdate.getFullYear() + "-"
|
||||
|
||||
Reference in New Issue
Block a user