Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different users and init #21

Open
KevinBurton opened this issue Oct 10, 2014 · 1 comment
Open

Different users and init #21

KevinBurton opened this issue Oct 10, 2014 · 1 comment

Comments

@KevinBurton
Copy link

I have built a workaround for an exception that we are getting when I login with an invalid user then a valid user. The code is at about line 438 in sticky.js:

    request.onsuccess = function (event) {
        if (event.target.result &&
            (!store.adapters.indexedDB.io ||
              store.adapters.indexedDB.io.name !== ((event.target.result.db) ? event.target.result.db.name : event.target.result.name))) {
            // FF is event.target.result, Chrome is event.target.result.db
            store.adapters.indexedDB.io = (event.target.result.db) ? event.target.result.db : event.target.result
        }
        // Backwards compatibility for older indexedDB implementations before
        // IDBDatabase.setVersion() was removed.

As opposed to

    request.onsuccess = function (event) {
        // FF is event.target.result, Chrome is event.target.result.db
        if (!store.adapters.indexedDB.io && event.target.result) {
            store.adapters.indexedDB.io = (event.target.result.db) ? event.target.result.db : event.target.result
        }
        // Backwards compatibility for older indexedDB implementations before
        // IDBDatabase.setVersion() was removed.

Comments?

Kevin

@alexmingoia
Copy link
Owner

I have no time to maintain this module right now... Pull requests are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants