Skip to content

Commit

Permalink
use ember.js bundled ember debug
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Oct 14, 2024
1 parent 6e95d79 commit 6a55cc4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ember_debug/vendor/startup-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,24 @@ var EMBER_VERSIONS_SUPPORTED = {{EMBER_VERSIONS_SUPPORTED}};

(function(adapter) {
onEmberReady(function() {

if (window.EMBER_INSPECTOR_SUPPORT_BUNDLED) {
function sendLoadedEvent() {
const e = new CustomEvent('ember-inspector-loaded', {
detail: {
adapter: adapter,
EMBER_VERSIONS_SUPPORTED
},
});
window.dispatchEvent(e);
}
sendLoadedEvent();
window.addEventListener('ember-inspector-support-setup', () => {
sendLoadedEvent();
});
return;
}

// global to prevent injection
if (window.NO_EMBER_DEBUG) {
return;
Expand Down

0 comments on commit 6a55cc4

Please sign in to comment.