mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Code simplification
This commit is contained in:
parent
91dd283b9a
commit
cee0f75293
1 changed files with 2 additions and 6 deletions
|
@ -344,15 +344,11 @@
|
|||
let changed;
|
||||
if (type ==="value"){
|
||||
if (changedFunction.fakeGenerator){
|
||||
const generated = changedFunction.fakeGenerator(checker, original, windowToProcess);
|
||||
if ((changedFunction.exportOptions || {}).allowCallbacks){
|
||||
changed = extension.exportFunctionWithName(
|
||||
changedFunction.fakeGenerator(checker, original, windowToProcess),
|
||||
windowToProcess,
|
||||
original.name
|
||||
);
|
||||
changed = extension.exportFunctionWithName(generated, windowToProcess, original.name);
|
||||
}
|
||||
else {
|
||||
const generated = changedFunction.fakeGenerator(checker, original, windowToProcess);
|
||||
changed = extension.createProxyFunction(windowToProcess, original, generated);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue