Skip to content

Commit

Permalink
fix buildComponent in http
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmachuca committed May 3, 2023
1 parent caad790 commit 13b0732
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/QCObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -4938,25 +4938,22 @@
return _promise;
};
var _buildComponents = function () {
var _promise_;
if (isBrowser) {
logger.debug("Initializing the service worker");
_promise_ = __load__serviceWorker.call(_top)
.finally (function (){
return new Promise ((resolve, reject) => {
if (isBrowser) {
logger.debug("Starting to building components");
try {
_top.componentsStack = document.buildComponents.call(document);
}catch (e){
throw Error (`Something went wrong trying to start components tree: ${e.message}`);
}
})
.catch(function (e) {
logger.debug(`error loading the service worker ${e}`);
});
} else {
_promise_ = Promise.resolve();
}
return _promise_;
logger.debug("Initializing the service worker");
__load__serviceWorker.call(_top)
.catch(function (e) {
logger.debug(`error loading the service worker ${e}`);
});
}
resolve();
});
};
logger.debug("Starting to load the config settings...");
if (_top.CONFIG.get("useConfigService", false)) {
Expand Down

0 comments on commit 13b0732

Please sign in to comment.