poker-html-client
Version:
HTML client for online poker
22 lines (19 loc) • 577 B
text/typescript
import { debugSettings } from "../debugsettings";
export class ReloadManager {
private callback: () => void;
public setReloadCallback(callback: () => void) {
this.callback = callback;
}
public execute() {
this.log("Executing reload callback");
if (this.callback != null) {
this.callback();
}
}
private log(message: string) {
if (debugSettings.application.reloadManager) {
// tslint:disable-next-line:no-console
console.log(message);
}
}
}