1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Added linting for consistent-return

This commit is contained in:
kkapsner 2019-12-01 01:25:39 +01:00
parent 635cdf8061
commit 1aff68d802
10 changed files with 43 additions and 42 deletions

View file

@ -45,7 +45,7 @@
}
else {
if (isWhitelisted(window.location)){
return;
return false;
}
}
return changeProperty;
@ -265,6 +265,10 @@
scope.protect = function protect(window, wrappedWindow, singleCallback, allCallback){
const changeProperty = createChangeProperty(window);
if (!changeProperty){
return;
}
const api = {window, wrappedWindow, changeProperty, singleCallback, allCallback};
protectFrameProperties(api);