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:
parent
635cdf8061
commit
1aff68d802
10 changed files with 43 additions and 42 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue