From 39a87aed9d3cb8126805924aea8472ce3ff9e927 Mon Sep 17 00:00:00 2001 From: Andrei Rusu Date: Wed, 6 Sep 2023 13:02:54 +0200 Subject: [PATCH] Update launchComponentRenderer.js --- nightwatch/commands/launchComponentRenderer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nightwatch/commands/launchComponentRenderer.js b/nightwatch/commands/launchComponentRenderer.js index aea1b29..3f3e79e 100644 --- a/nightwatch/commands/launchComponentRenderer.js +++ b/nightwatch/commands/launchComponentRenderer.js @@ -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/`); } -}; \ No newline at end of file +};