Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: no-op check to work with Safari and support of old browsers. (#582)
Verify the object that might be at `globalThis.browser` is not already implementing the basic Web Extension APIs. This is symmetric with the check to verify the poly fill is only included in extension contexts. Don't use optional-chaining for these checks, since this needs to continuing working in older browsers.
- Loading branch information