Skip to content

Commit

Permalink
feat: compatible browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgao365 committed Jun 27, 2024
1 parent c67c7f6 commit b268eca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vscode-webview/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ class VSCodeWebview {

constructor() {
if (typeof acquireVsCodeApi !== 'function') {
throw new Error('acquireVsCodeApi is not a function');
console.error('acquireVsCodeApi is not a function');
return;
}

this.webviewApi = acquireVsCodeApi();
Expand Down

0 comments on commit b268eca

Please sign in to comment.