mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-02-23 19:10:09 +01:00
Linting
This commit is contained in:
parent
f72f8f67ae
commit
b6e5384945
@ -4,14 +4,7 @@
|
||||
(function(){
|
||||
"use strict";
|
||||
|
||||
var scope;
|
||||
if ((typeof exports) !== "undefined"){
|
||||
scope = exports;
|
||||
}
|
||||
else {
|
||||
scope = require.register("./modifiedCanvasAPI", {});
|
||||
}
|
||||
|
||||
const scope = ((typeof exports) !== "undefined")? exports: require.register("./modifiedCanvasAPI");
|
||||
const colorStatistics = require("./colorStatistics");
|
||||
const logging = require("./logging");
|
||||
const {copyCanvasToWebgl} = require("./webgl");
|
||||
@ -152,7 +145,7 @@
|
||||
var size = canvas.height * canvas.width;
|
||||
var maxSize = prefs("maxFakeSize") || Number.POSITIVE_INFINITY;
|
||||
var minSize = prefs("minFakeSize") || 0;
|
||||
return size > minSize & size <= maxSize;
|
||||
return size > minSize && size <= maxSize;
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user