Introduce and use "openBrowser" (#4876)

Co-authored-by: Steven Johnstone <sjohntone@mirantis.com>
This commit is contained in:
Steven JohnstoneandSteven Johnstone authored and GitHub committed 2022-02-17 08:37:34 -05:00
1 parent 8088d3b5c2
commit 625b00c247
7 files changed
+46 -21

No files matched your search

@@ -4,7 +4,7 @@
*/
import { openExternal } from "../utils";
import { openBrowser } from "../utils";
import { Notifications } from "../components/notifications";
import type { ForwardedPort } from "./port-forward-item";
import logger from "../../common/logger";
@@ -16,7 +16,7 @@ export function portForwardAddress(portForward: ForwardedPort) {
export function openPortForward(portForward: ForwardedPort) {
const browseTo = portForwardAddress(portForward);
openExternal(browseTo)
openBrowser(browseTo)
.catch(error => {
logger.error(`failed to open in browser: ${error}`, {
port: portForward.port,