Different method + fixed lint for tracker + added frame mode for shared URLs

This commit is contained in:
Bartosz Hernas 2020-09-15 00:09:09 +02:00
parent 2ea91aaabf
commit d19bcbabe0
3 changed files with 42 additions and 41 deletions

View file

@ -39,13 +39,11 @@ export const put = (url, params) => apiRequest('put', url, JSON.stringify(params
export const hook = (_this, method, callback) => {
const orig = _this[method];
_this[method] = (...args) => {
callback.apply(null, args);
return orig.apply(_this, args);
};
return () => {
_this[method] = orig;
return (...args) => {
callback.apply(null, args);
return orig.apply(_this, args);
};
};