mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
@@ -2,12 +2,11 @@
|
||||
// @ts-strict-ignore
|
||||
import * as child_process from "child_process";
|
||||
|
||||
import open from "open";
|
||||
|
||||
import { ClientType, DeviceType } from "@bitwarden/common/enums";
|
||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||
|
||||
// eslint-disable-next-line
|
||||
const open = require("open");
|
||||
|
||||
export class CliPlatformUtilsService implements PlatformUtilsService {
|
||||
clientType: ClientType;
|
||||
|
||||
@@ -84,7 +83,8 @@ export class CliPlatformUtilsService implements PlatformUtilsService {
|
||||
if (process.platform === "linux") {
|
||||
child_process.spawnSync("xdg-open", [uri]);
|
||||
} else {
|
||||
open(uri);
|
||||
// eslint-disable-next-line no-console
|
||||
open(uri).catch(console.error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user