Skip to content

Commit 6d7af8b

Browse files
committed
fix: change callback function name
1 parent 784a354 commit 6d7af8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared/lib/postAppMessage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ declare global {
1616
}
1717
}
1818

19-
const postAppMessage = (method: AppMessageMethod, message: string, isWebview: boolean, showToast: (message: string) => void) => {
19+
const postAppMessage = (method: AppMessageMethod, message: string, isWebview: boolean, callback: (message: string) => void) => {
2020
const userAgent = navigator.userAgent.toLowerCase();
2121
const android = userAgent.match(/android/i);
2222
const iphone = userAgent.match(/iphone/i);
@@ -33,7 +33,7 @@ const postAppMessage = (method: AppMessageMethod, message: string, isWebview: bo
3333
return window.webkit.messageHandlers.weski.postMessage({ method: method, message: message });
3434
}
3535
}
36-
return showToast(message);
36+
return callback(message);
3737
}
3838

3939
export default postAppMessage;

0 commit comments

Comments
 (0)