Skip to content

Commit

Permalink
add utils to scrcpy-plus core
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Oct 10, 2024
1 parent ccb9e2d commit cf3fbd5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 31 deletions.
Empty file removed app/plugins/.gitkeep
Empty file.
18 changes: 0 additions & 18 deletions app/plugins/modules/execute.js

This file was deleted.

11 changes: 10 additions & 1 deletion app/plugins/scrcpy-plus-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,18 @@ const execute = (cmd) => {
})
}

const utils = {
openInternal(url) {
window.open(url, '_blank', 'autoHideMenuBar=true');
},
openExternal(url) {
require("electron").shell.openExternal(url)
}
}


export default defineNuxtPlugin(() => {
return {
provide: { execute }
provide: { execute, utils }
}
})
12 changes: 0 additions & 12 deletions app/plugins/utils.js

This file was deleted.

0 comments on commit cf3fbd5

Please sign in to comment.