Skip to content

Commit

Permalink
Merge pull request #124 from bsideproject/jw-dev
Browse files Browse the repository at this point in the history
temp
  • Loading branch information
boxak authored Jul 23, 2023
2 parents 85f53b4 + 6ef9e0a commit a72d405
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,18 @@ function App() {
useEffect(() => {

const handleMessage = (event : any) => {

if(!isMessageReceived) {

setMessageReceived(true);
window.removeEventListener('message', handleMessage);

let data : string = event.data;

data = data.replaceAll('"','');
const data = event.data;

console.log("jwtKey from webview : " + data);

RootStore.userStore.setJwtKey(data);


}
};

window.addEventListener('message', handleMessage);
Expand Down

0 comments on commit a72d405

Please sign in to comment.