mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-09 04:31:13 +00:00
20 lines
399 B
TypeScript
20 lines
399 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;
|
|
}
|
|
}
|