mirror of https://github.com/gorhill/uBlock.git
Fix spurious warning
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2243
This commit is contained in:
parent
4ec2e07feb
commit
0bfffb80c4
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
// For background page
|
// For background page
|
||||||
|
|
||||||
|
/* globals browser */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
@ -721,7 +723,8 @@ vAPI.setIcon = (( ) => {
|
||||||
for ( const img of imgs ) {
|
for ( const img of imgs ) {
|
||||||
if ( img.r.complete === false ) { return; }
|
if ( img.r.complete === false ) { return; }
|
||||||
}
|
}
|
||||||
const ctx = document.createElement('canvas').getContext('2d');
|
const ctx = document.createElement('canvas')
|
||||||
|
.getContext('2d', { willReadFrequently: true });
|
||||||
const iconData = [ null, null ];
|
const iconData = [ null, null ];
|
||||||
for ( const img of imgs ) {
|
for ( const img of imgs ) {
|
||||||
if ( img.cached ) { continue; }
|
if ( img.cached ) { continue; }
|
||||||
|
|
Loading…
Reference in New Issue