Release v0.7.0 - Automatic pairing and validated MA audio playback
Validate and generate manual release / package (push) Waiting to run
Validate and generate manual release / package (push) Waiting to run
This commit is contained in:
1 parent
83d168f5a1
commit
1ed30567fb
48 files changed
+2717
-742
No files matched your search
@@ -0,0 +1,7 @@
|
||||
// Secrets stay in closure memory across failed attempts and window rerenders.
|
||||
// Never carry a token to a changed server, including a scheme/port change.
|
||||
export function connectionDraft(previous,profile,campaign){
|
||||
let same=false;try{same=new URL(previous?.maUrl).origin===new URL(profile.maUrl).origin;}catch{}
|
||||
const old=same?previous:{};
|
||||
return {...old,...profile,token:profile.token||old?.token,identityStorage:profile.identityStorage?.['sendspin-identity-sk']?profile.identityStorage:old?.identityStorage,campaign};
|
||||
}
|
||||
Reference in new issue
Block a user