mirror of
https://github.com/everoddandeven/monerod-gui.git
synced 2024-12-22 11:39:25 +00:00
[Code quality] fix
This commit is contained in:
parent
bb21a7ceb4
commit
33b5c0313c
1 changed files with 4 additions and 2 deletions
|
@ -249,7 +249,7 @@ export class DaemonService {
|
|||
}
|
||||
|
||||
private async openDatabase(): Promise<IDBPDatabase<any>> {
|
||||
return await openDB<IDBPDatabase<any>>(this.dbName, 1, {
|
||||
return await openDB<any>(this.dbName, 1, {
|
||||
upgrade(db) {
|
||||
// Crea un archivio (store) per i settings se non esiste già
|
||||
if (!db.objectStoreNames.contains('settingsStore')) {
|
||||
|
@ -371,7 +371,9 @@ export class DaemonService {
|
|||
}
|
||||
}
|
||||
|
||||
throw new Error(error.message);
|
||||
const errorMessage: string = `${error.message}`;
|
||||
|
||||
throw new Error(errorMessage);
|
||||
}
|
||||
|
||||
throw error;
|
||||
|
|
Loading…
Reference in a new issue