Dexie.js not working with Chrome Extension

Created on 13 Apr 2016  路  5Comments  路  Source: dfahlander/Dexie.js

I tried to use Dexie.js to store extension data in IndexedDB but it didn't work.
Also, i need to ask one thing.. Can we use dexie.js to store extension data as permanent storage as like lastpass so that data could not be visible from chrome console?

Need Help Answerring! question

Most helpful comment

Well after some more reading I realize message passing is the only option. I'm a bit sad.

All 5 comments

I know there are others using Dexie in Chrome extensions (#179). I'm not experienced with chrome extensions so maybe someone else could answer?

It definitely works. I'm using Dexie in background and content-scripts and in a webworker w/o problems. Maybe @sujprogrammer has to provide more information and some of his code.

I too have an issue : I open the same database (name) in a content script and the extension popup, and the contents are different. They seem to each live in their own world.
If I open the same database name in the background script, it has the same contents as the popup. I hope there is a way to make it work simply without resorting to messaging between the content and background scripts to query and update data. :(

Well after some more reading I realize message passing is the only option. I'm a bit sad.

Closing

Was this page helpful?
0 / 5 - 0 ratings