mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Improve test for presence of browser
as extensions API
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1914 The issue affected only Chromium-based browsers.
This commit is contained in:
parent
a611c3f40a
commit
d38c19cabf
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,10 @@
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
if ( self.browser instanceof Object ) {
|
if (
|
||||||
|
self.browser instanceof Object &&
|
||||||
|
self.browser instanceof Element === false
|
||||||
|
) {
|
||||||
self.chrome = self.browser;
|
self.chrome = self.browser;
|
||||||
} else {
|
} else {
|
||||||
self.browser = self.chrome;
|
self.browser = self.chrome;
|
||||||
|
|
Loading…
Reference in a new issue