mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Removed remaining sdk shortcut module
This commit is contained in:
parent
ef4e238b94
commit
f8f35890a1
7 changed files with 19 additions and 23 deletions
|
@ -12,6 +12,21 @@
|
|||
scope = require.register("./modifiedAPIFunctions", {});
|
||||
}
|
||||
|
||||
scope.getWrapped = function getWrapped(obj){
|
||||
if (!obj){
|
||||
return obj;
|
||||
}
|
||||
var wrapped;
|
||||
try {
|
||||
wrapped = obj.wrappedJSObject || obj;
|
||||
}
|
||||
catch (e){
|
||||
require("./logging").error("getWrapped failed for", obj, ":", e);
|
||||
wrapped = obj;
|
||||
}
|
||||
return wrapped;
|
||||
};
|
||||
|
||||
scope.checkerWrapper = function checkerWrapper(checker, object, args, callback){
|
||||
const check = checker.call(object);
|
||||
if (check.allow){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue