Get

Posted in General by Lucas Marques Fri Aug 18 2017 14:42:42 GMT+0000 (Coordinated Universal Time)·Viewed 991 times

Hi, I need help I'm trying build a status message in view, like "Browser Enable" or "Browser Blocked". So, I made this: if(pushcrew.isAPIReady) { if (console.log(pushcrew.subscriberId) === false){ $('.inactive-push').attr("hidden",false); } else if (console.log(pushcrew.subscriberId) === -1){ $('.blocked-push').attr("hidden",false); } else { $('.active-push').attr("hidden",false); } } I can run this in console normally, and work right, but, when I try put this in my code, I get a error like "Uncaught ReferenceError: pushcrew is not defined"
  
Markdown is allowed