We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66fca38 commit 55a317dCopy full SHA for 55a317d
apps/web/src/utils/bridge.ts
@@ -7,33 +7,6 @@ import {
7
ShareMemeData,
8
} from '../types/bridge';
9
10
-// 개발 환경용 모의 브릿지
11
-const mockNativeBridge = {
12
- postMessage(data: string) {
13
- console.log('Mock Android Bridge called with:', JSON.parse(data));
14
- },
15
-};
16
-
17
-const mockWebKit = {
18
- messageHandlers: {
19
- wikiHandler: {
20
21
- console.log('Mock iOS Bridge called with:', JSON.parse(data));
22
23
24
25
26
27
-// 개발 환경에서 모의 브릿지 주입
28
-if (import.meta.env.DEV) {
29
- if (!window.wiki) {
30
- window.wiki = mockNativeBridge;
31
- }
32
- if (!window.webkit) {
33
- window.webkit = mockWebKit;
34
35
-}
36
37
class NativeBridge {
38
private static instance: NativeBridge;
39
0 commit comments