mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-09-22 22:27:56 +03:00
Added several player profile stats to the web UI.
Refactored and cleaned up several functions. MDB loader now logs the number of loaded songs available to GF and DM. MDB: Fixed "is_secret" field being ignored (always set to false)
This commit is contained in:
@@ -7,7 +7,6 @@ export default class Logger {
|
||||
this.category = (category == null) ? null : `[${category}]`
|
||||
}
|
||||
|
||||
|
||||
public error(...args: any[]) {
|
||||
this.argsHandler(console.error, ...args)
|
||||
}
|
||||
@@ -18,7 +17,6 @@ export default class Logger {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public warn(...args: any[]) {
|
||||
this.argsHandler(console.warn, ...args)
|
||||
}
|
||||
@@ -29,7 +27,6 @@ export default class Logger {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public info(...args: any[]) {
|
||||
this.argsHandler(console.info, ...args)
|
||||
}
|
||||
@@ -40,7 +37,6 @@ export default class Logger {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public log(...args: any[]) {
|
||||
this.argsHandler(console.log, ...args)
|
||||
}
|
||||
@@ -51,7 +47,6 @@ export default class Logger {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private argsHandler(target: Function, ...args: any[]) {
|
||||
if (this.category == null) {
|
||||
target(...args)
|
||||
|
||||
Reference in New Issue
Block a user