Skip to content

Commit

Permalink
šŸ›? [Frontend bugfix?] Directly switch to service's iframe when its stā€¦
Browse files Browse the repository at this point in the history
ā€¦atus is ``running`` (#5948)
  • Loading branch information
odeimaiz authored Jun 17, 2024
1 parent bfab27a commit f17ed4b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1331,9 +1331,16 @@ qx.Class.define("osparc.data.model.Node", {
// ping for some time until it is really ready
fetch(srvUrl)
.then(request => {
/*
if (request.status >= 200 || request.status < 300) {
this.__waitForServiceWebsite(srvUrl)
}
*/
// instead of
// - requesting its frontend to make sure it is ready and ...
// - waiting for the "load" event triggered by the content of the iframe
// we will skip those steps and directly switch its iframe
this.__serviceReadyIn(srvUrl);
})
.catch(err => {
this.getStatus().setInteractive("connecting");
Expand Down

0 comments on commit f17ed4b

Please sign in to comment.