mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 13:17:19 +01:00
Different method + fixed lint for tracker + added frame mode for shared URLs
This commit is contained in:
parent
2ea91aaabf
commit
d19bcbabe0
3 changed files with 42 additions and 41 deletions
10
lib/web.js
10
lib/web.js
|
|
@ -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);
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue