Dhiral Pandya
Dhiral Pandya

Reputation: 10619

Uncaught ReferenceError: openDatabase is not defined

I am trying to use openDatabase with a Google Chrome app but the following error is displayed:

Uncaught ReferenceError: openDatabase is not defined

I also added permissions (unlimitedStorage) in manifest.json.

Upvotes: 1

Views: 4124

Answers (2)

Said Afkir
Said Afkir

Reputation: 171

dexie js work prefect in chrome apps

Upvotes: 0

Rob W
Rob W

Reputation: 349112

WebSQL is disabled for Chrome apps, as you can see in the documentation.

If you want to save data persistently, use the chrome.storage API, IndexedDB or the chrome.fileSystem API (not to be confused with the HTML5 Filesystem API!).

Upvotes: 5

Related Questions