mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Merge branch 'release' into schedule-rc
This commit is contained in:
@@ -60,7 +60,17 @@ export function generateReq (options = {}) {
|
||||
header (header) {
|
||||
return this.headers[header];
|
||||
},
|
||||
listeners: {},
|
||||
session: {},
|
||||
on (key, func) {
|
||||
if (!this.listeners[key]) {
|
||||
this.listeners[key] = [];
|
||||
}
|
||||
this.listeners[key].push(func);
|
||||
},
|
||||
end () {
|
||||
this.listeners.close.forEach(func => func());
|
||||
},
|
||||
};
|
||||
|
||||
const req = defaultsDeep(options, defaultReq);
|
||||
|
||||
Reference in New Issue
Block a user