Add safe mode #85

Merged
Vylpes merged 2 commits from feature/76-safe-mode into develop 2023-11-12 20:53:50 +00:00
Showing only changes of commit 6d63232ecb - Show all commits

View file

@ -10,9 +10,13 @@ export default class CardSetupFunction {
public static async Execute() {
if (await Config.GetValue('safemode') == "true") return;
try {
await this.ClearDatabase();
await this.ReadSeries();
await this.ReadCards();
} catch {
await Config.SetValue('safemode', 'true');
}
}
private static async ClearDatabase() {