Skip to content

Commit

Permalink
move to onReady
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Oct 17, 2024
1 parent 6a55cc4 commit 44226ae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ember_debug/vendor/startup-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ var EMBER_VERSIONS_SUPPORTED = {{EMBER_VERSIONS_SUPPORTED}};
// @formatter:on

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

if (window.EMBER_INSPECTOR_SUPPORT_BUNDLED) {
function sendLoadedEvent() {
onReady(() => {
function sendLoadedEvent() {
const e = new CustomEvent('ember-inspector-loaded', {
detail: {
adapter: adapter,
Expand All @@ -42,6 +41,10 @@ var EMBER_VERSIONS_SUPPORTED = {{EMBER_VERSIONS_SUPPORTED}};
window.addEventListener('ember-inspector-support-setup', () => {
sendLoadedEvent();
});
});

onEmberReady(function() {
if (window.EMBER_INSPECTOR_SUPPORT_BUNDLED) {
return;
}

Expand Down

0 comments on commit 44226ae

Please sign in to comment.