Skip to content

Commit

Permalink
Check type of EMBER_INSPECTOR_CONFIG
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyzeenny committed Dec 1, 2014
1 parent 15f5643 commit 9b343aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ember_debug/vendor/startup-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ if (typeof adapter !== 'undefined') {
}
var documentElement = document.documentElement;
var interval = setInterval(function() {
if ((documentElement.dataset.emberExtension || (EMBER_INSPECTOR_CONFIG && EMBER_INSPECTOR_CONFIG.remoteDebugSocket)) && Ember.BOOTED) {
if ((documentElement.dataset.emberExtension || (typeof EMBER_INSPECTOR_CONFIG === 'object' && EMBER_INSPECTOR_CONFIG.remoteDebugSocket)) && Ember.BOOTED) {
clearInterval(interval);
callback();
}
Expand Down

0 comments on commit 9b343aa

Please sign in to comment.