mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-23 21:08:04 +00:00
19 lines
392 B
TypeScript
19 lines
392 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { AngularIndexedDB } from 'angular2-indexeddb';
|
|
|
|
@Injectable()
|
|
export class IndexedDbService {
|
|
static VERSION = 1;
|
|
static DATABASE = 'gns3-web-ui';
|
|
|
|
private db: AngularIndexedDB;
|
|
|
|
constructor() {
|
|
this.db = new AngularIndexedDB(IndexedDbService.DATABASE, IndexedDbService.VERSION);
|
|
}
|
|
|
|
public get() {
|
|
return this.db;
|
|
}
|
|
}
|