mirror of https://github.com/gorhill/uBlock.git
#956/#1497: minor code review
This commit is contained in:
parent
e1f150f494
commit
6d79aa43ba
|
@ -349,8 +349,11 @@ vAPI.shutdown.add(function() {
|
||||||
// search for "https://github.com/gorhill/uBlock/issues/1497".
|
// search for "https://github.com/gorhill/uBlock/issues/1497".
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
// Don't bother if WebSocket is not supported.
|
// Fix won't be applied on older versions of Chromium.
|
||||||
if ( window.WebSocket instanceof Function === false ) {
|
if (
|
||||||
|
window.WebSocket instanceof Function === false ||
|
||||||
|
window.WeakMap instanceof Function === false
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue