Created cli command. Updated tracker script.
This commit is contained in:
1 parent
49a55b40b4
commit
a6975ecedd
9 files changed
+120
-35
No files matched your search
+10
@@ -8,3 +8,13 @@ export const post = (url, params) =>
|
||||
},
|
||||
body: JSON.stringify(params),
|
||||
}).then(res => (res.status === 200 ? res.json() : null));
|
||||
|
||||
export const hook = (_this, method, callback) => {
|
||||
const orig = _this[method];
|
||||
|
||||
return (...args) => {
|
||||
callback.apply(null, args);
|
||||
|
||||
return orig.apply(_this, args);
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user