Skip to content

Commit

Permalink
Update launchComponentRenderer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
beatfactor committed Sep 6, 2023
1 parent 98e9a6a commit 39a87ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nightwatch/commands/launchComponentRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ module.exports = class Command {
}

if (global.viteServer) {
launchUrl = `http://localhost:${global.viteServer.config.port}`;
const protocol = global.viteServer.config.server.https ? 'https' : 'http';
launchUrl = `${protocol}://localhost:${global.viteServer.config.port}`;
}

return this.api.navigateTo(`${launchUrl}/_nightwatch/`);
}
};
};

0 comments on commit 39a87ae

Please sign in to comment.