Skip to content

Commit

Permalink
fixup! feat(connect-common): store is event emitter, saves permission…
Browse files Browse the repository at this point in the history
…s and preferred device
  • Loading branch information
mroz22 committed Jan 12, 2024
1 parent d525780 commit 3d240d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/connect/src/core/AbstractMethod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export abstract class AbstractMethod<Name extends CallMethodPayload['method'], P
private getOriginPermissions() {
const origin = DataManager.getSettings('origin');
if (!origin) {
throw new Error('origin is not set');
return [];
}

return storage.loadForOrigin(origin)?.permissions || [];
Expand Down

0 comments on commit 3d240d1

Please sign in to comment.