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