We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d2dba8 commit b835243Copy full SHA for b835243
1 file changed
src/browser.ts
@@ -188,7 +188,8 @@ export class SentienceBrowser implements IBrowser {
188
await context.setGeolocation(policy.geolocation);
189
}
190
if (policy.autoGrant && policy.autoGrant.length > 0) {
191
- await context.grantPermissions(policy.autoGrant, policy.origin);
+ const options = policy.origin ? { origin: policy.origin } : undefined;
192
+ await context.grantPermissions(policy.autoGrant, options);
193
194
195
0 commit comments