This repository was archived by the owner on Nov 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
let showSelectAddress = false ;
7
7
function handleMessage(event ) {
8
- const appDomain = event .origin ;
9
- event .source ?.postMessage (' respond from open window...' , appDomain );
8
+ return
9
+ // if (event.origin !== 'http://localhost:5173') {
10
+ // return;
11
+ // }
12
+
13
+ // const appDomain = event.origin;
14
+ // event.source?.postMessage('respond from open window...', appDomain);
10
15
}
11
16
12
17
const unsubscribe = () => {
17
22
onMount (() => {
18
23
if (window .opener ) {
19
24
window .addEventListener (' message' , handleMessage , false );
20
- window .opener .postMessage (' PROXY:READY' );
25
+ window .opener .postMessage (JSON . stringify ({method: ' PROXY:READY' }), ' * ' );
21
26
return unsubscribe ;
22
27
}
23
28
});
Original file line number Diff line number Diff line change 35
35
const sendSignatureToApp = () => {
36
36
window .opener .postMessage (
37
37
JSON .stringify ({
38
- message : ' PROXY:SIGNATURE' ,
38
+ method : ' PROXY:SIGNATURE' ,
39
39
signatures: {
40
40
handle: $SignatureStore .claimHandle ,
41
41
delegation: $SignatureStore .authorizedDelegationAndSchemas
You can’t perform that action at this time.
0 commit comments