mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Introduce and use "openBrowser" (#4876)
Co-authored-by: Steven Johnstone <sjohntone@mirantis.com>
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user