Skip to content

Commit 98906d2

Browse files
committed
fix: Import correct module
1 parent dc425f4 commit 98906d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src-vue/src/plugins/modules/pull_requests.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { invoke } from "@tauri-apps/api/core";
2+
import { open } from '@tauri-apps/plugin-shell';
23
import { PullsApiResponseElement } from "../../../../src-tauri/bindings/PullsApiResponseElement";
34
import { PullRequestType } from '../../../../src-tauri/bindings/PullRequestType';
45
import { store } from "../store";
@@ -40,15 +41,15 @@ export const pullRequestModule = {
4041
await invoke<string>("get_launcher_download_link", { commitSha: pull_request.head.sha })
4142
.then((url) => {
4243
// Open URL in default HTTPS handler (i.e. default browser)
43-
shell.open(url);
44+
open(url);
4445
})
4546
.catch((error) => {
4647
showErrorNotification(error);
4748
});
4849
},
4950
async downloadModsPR(_state: PullRequestStoreState, pull_request: PullsApiResponseElement) {
5051
let url = `https://github.com/${pull_request.head.repo.full_name}/archive/refs/heads/${pull_request.head.ref}.zip`
51-
shell.open(url);
52+
open(url);
5253
},
5354
async installLauncherPR(_state: PullRequestStoreState, pull_request: PullsApiResponseElement) {
5455
// Send notification telling the user to wait for the process to finish

0 commit comments

Comments
 (0)