File tree 1 file changed +3
-2
lines changed
src-vue/src/plugins/modules
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { invoke } from "@tauri-apps/api/core" ;
2
+ import { open } from '@tauri-apps/plugin-shell' ;
2
3
import { PullsApiResponseElement } from "../../../../src-tauri/bindings/PullsApiResponseElement" ;
3
4
import { PullRequestType } from '../../../../src-tauri/bindings/PullRequestType' ;
4
5
import { store } from "../store" ;
@@ -40,15 +41,15 @@ export const pullRequestModule = {
40
41
await invoke < string > ( "get_launcher_download_link" , { commitSha : pull_request . head . sha } )
41
42
. then ( ( url ) => {
42
43
// Open URL in default HTTPS handler (i.e. default browser)
43
- shell . open ( url ) ;
44
+ open ( url ) ;
44
45
} )
45
46
. catch ( ( error ) => {
46
47
showErrorNotification ( error ) ;
47
48
} ) ;
48
49
} ,
49
50
async downloadModsPR ( _state : PullRequestStoreState , pull_request : PullsApiResponseElement ) {
50
51
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 ) ;
52
53
} ,
53
54
async installLauncherPR ( _state : PullRequestStoreState , pull_request : PullsApiResponseElement ) {
54
55
// Send notification telling the user to wait for the process to finish
You can’t perform that action at this time.
0 commit comments