mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
#956/#1497: minor code review
This commit is contained in:
parent
e1f150f494
commit
6d79aa43ba
1 changed files with 5 additions and 2 deletions
|
@ -349,8 +349,11 @@ vAPI.shutdown.add(function() {
|
|||
// search for "https://github.com/gorhill/uBlock/issues/1497".
|
||||
|
||||
(function() {
|
||||
// Don't bother if WebSocket is not supported.
|
||||
if ( window.WebSocket instanceof Function === false ) {
|
||||
// Fix won't be applied on older versions of Chromium.
|
||||
if (
|
||||
window.WebSocket instanceof Function === false ||
|
||||
window.WeakMap instanceof Function === false
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue