diff --git a/src/common/service/hooks/useBridgeCallback.ts b/src/common/service/hooks/useBridgeCallback.ts index f5288db2..466e1bab 100644 --- a/src/common/service/hooks/useBridgeCallback.ts +++ b/src/common/service/hooks/useBridgeCallback.ts @@ -19,6 +19,8 @@ interface BridgeParams { }; /** snap 초기화 */ initialize: null; + /** 페이지 뒤로 가기 */ + goBack: null; } function useBridgeCallback( diff --git a/src/common/service/hooks/useWebview.ts b/src/common/service/hooks/useWebview.ts index 0c5207b8..f5da6052 100644 --- a/src/common/service/hooks/useWebview.ts +++ b/src/common/service/hooks/useWebview.ts @@ -9,7 +9,7 @@ declare global { } } -type POST_MESSAGE_TYPE = 'login' | 'notification'; +type POST_MESSAGE_TYPE = 'login' | 'notification' | 'goBack'; const useWebview = () => { return React.useMemo(() => {