sdf

Javascript code posted
created at 02 Mar 13:42

Edit | Back
1
2
3
4
5
6
7
8
9
10
private openDatabase() {
        if (this.isCordova()) {
            this.db = new SQLite();
            this.db.openDatabase({ name: this.name, location: this.location }).then((db: SQLite) => this.init());
        } else {
            console.warn("no sqlite plugin found, trying to open websql database");
            this.db = this.win.openDatabase(this.name, '1.0', this.name, 10 * 1024 * 1024);
            this.init();
        }
    }
449 Bytes in 10 ms with coderay