Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1b8f290

Browse files
authored
Merge pull requestcoderoad#161 from ShMcK/fix/mock
mock values for web
2 parentse08be3c +10c72f6 commit1b8f290

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

‎web-app/src/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import*asReactfrom'react'
22
importReactDOMfrom'react-dom'
3+
4+
// mock values for non-extension web use
5+
import'./mock'
6+
37
importAppfrom'./App'
48

59
// init error logging

‎web-app/src/mock/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//@ts-ignore
2+
if(!global.acquireVsCodeApi){
3+
//@ts-ignore
4+
global.acquireVsCodeApi=()=>({
5+
postMessage(event:string){
6+
console.log('postMessage',event)
7+
},
8+
})
9+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp