Skip to content

Commit

Permalink
fix: only acquireVsCodeApi once
Browse files Browse the repository at this point in the history
  • Loading branch information
seven332 committed Dec 6, 2023
1 parent 01fd049 commit 7db3e8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/runner/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ window.addEventListener('message', (event) => {
skslPath.value = message
})
const vscode = acquireVsCodeApi()
function selectSkSL() {
const vscode = acquireVsCodeApi()
vscode.postMessage('Select SkSL')
}
</script>
Expand Down

0 comments on commit 7db3e8a

Please sign in to comment.