mirror of
https://github.com/p-stream/extension.git
synced 2026-01-11 20:10:35 +00:00
use "browser" instead of checking before using "browser"
This commit is contained in:
parent
b51ecc3d87
commit
9abac2469a
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ export const isSafari = () => {
|
|||
|
||||
export const getBrowserAPI = () => {
|
||||
if (isSafari()) {
|
||||
return typeof browser !== 'undefined' ? browser : chrome;
|
||||
return browser;
|
||||
}
|
||||
if (isFirefox()) {
|
||||
return browser;
|
||||
|
|
|
|||
Loading…
Reference in a new issue