Skip to content

Commit

Permalink
[fix]: handleIosWebviewToken function useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
VictoryJu committed Aug 29, 2024
1 parent ea94e7e commit 71efb0a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ function App() {
return 'fail';
};

window.handleIosWebviewToken = handleIosWebviewToken;

// useEffect(() => {
// webviewInit();
// }, []);
useEffect(() => {
window.handleIosWebviewToken = handleIosWebviewToken;
webviewInit();
}, []);

return <RootRouter />;
}
Expand Down

0 comments on commit 71efb0a

Please sign in to comment.