DEBUG: For more advanced debugging, install the Ember Inspector


#1

Although I’ve installed the Ember Inspector, I still get the following message in the console every time I start my app:

DEBUG: For more advanced debugging, install the Ember Inspector from https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi 

I did a little debugging and see that document.body.dataset.emberExtension is undefined in the following if-statement:

// Inform the developer about the Ember Inspector if not installed.
if (!Ember.testing) {
  if (typeof window !== 'undefined' && window.chrome && window.addEventListener) {
    window.addEventListener("load", function() {
      if (document.body && document.body.dataset && !document.body.dataset.emberExtension) {
        Ember.debug('For more advanced debugging, install the Ember Inspector from https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi');
      }
    }, false);
  }
}

Minor issue, but just curious why?


#2

The flag was moved from document.body to document.documentElement about 8 months ago. The console message will go away if/when you upgrade Ember to a newer version.


#3

Upgraded to v1.7.1 and can confirm that it has been fixed, now I can sleep better at night :wink: