Skip to content

Commit

Permalink
🚸 chore: hide iframe when enter background embed (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustin01 authored Jan 6, 2025
1 parent 99e155d commit 3624f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/lib/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export class HibitIdWallet {
await this._rpc?.call(WalletExposeRPCMethod.SET_BACKGROUND_EMBED, { value } as SetBackgroundEmbedRequest);
this._options.embedMode = value ? 'background' : 'float';

const iframeVisible = this._iframe?.visible ?? false
const iframeVisible = (value ? false : this._iframe?.visible) ?? false
// update controller and reposition iframe
if (!value) {
this._controller = new HibitIdController(
Expand Down

0 comments on commit 3624f11

Please sign in to comment.