mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 12:06:31 +02:00
Remove code duplications and cleanup
This commit is contained in:
parent
8e414becf0
commit
32f9ea7447
9 changed files with 58 additions and 117 deletions
|
@ -12,7 +12,7 @@
|
|||
scope = require.register("./modifiedHistoryAPI", {});
|
||||
}
|
||||
|
||||
const {checkerWrapper} = require("./modifiedAPIFunctions");
|
||||
const {checkerWrapper, setGetterProperties} = require("./modifiedAPIFunctions");
|
||||
|
||||
scope.changedGetters = [
|
||||
{
|
||||
|
@ -47,9 +47,9 @@
|
|||
return status;
|
||||
}
|
||||
|
||||
scope.changedGetters.forEach(function(changedGetter){
|
||||
changedGetter.type = "readout";
|
||||
changedGetter.getStatus = getStatus;
|
||||
changedGetter.api = "history";
|
||||
setGetterProperties(scope.changedGetters, {
|
||||
type: "readout",
|
||||
getStatus: getStatus,
|
||||
api: "history"
|
||||
});
|
||||
}());
|
Loading…
Add table
Add a link
Reference in a new issue