Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ permissions:
contents: read
pull-requests: write
issues: read

id-token: write
jobs:
claude-code-review:
Expand Down
10 changes: 10 additions & 0 deletions examples/next/src/components/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@ export function Profile() {
>
Open at Purchase
</Button>
<Button
onClick={() => {
ctrlConnector.controller.openProfile("inventory");
setTimeout(() => {
ctrlConnector.controller.close();
}, 3000);
}}
>
Close after 3 seconds...
</Button>
</div>
</div>
</div>
Expand Down
7 changes: 7 additions & 0 deletions packages/controller/src/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,13 @@ export default class ControllerProvider extends BaseProvider {
this.keychain.openSettings();
}

async close() {
if (!this.iframes || !this.iframes.keychain) {
return;
}
this.iframes.keychain.close();
}

revoke(origin: string, _policy: Policy[]) {
if (!this.keychain) {
console.error(new NotReadyToConnect().message);
Expand Down
Loading