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

Load libraty on browser without indexedDB support #69

Open
faiwer opened this issue Feb 11, 2016 · 1 comment
Open

Load libraty on browser without indexedDB support #69

faiwer opened this issue Feb 11, 2016 · 1 comment

Comments

@faiwer
Copy link

faiwer commented Feb 11, 2016

Some browsers has not support of IndexedDB. It's Ok. But I can't load this libraty without error.

Example, IE9:
img_11_02_15 20 56_454af9edaef

Currently I'm using string-replace plugin for grunt with this options:

ie8IndexedDB: {
    options: {
        replacements: [{
            pattern: '(',
            replacement: '(window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB) && ('
        }]
    },
    files: {"lib/jquery-indexeddb/jquery.indexeddb.js.ie8": "lib/jquery-indexeddb/jquery.indexeddb.js"}
},

I think better do that in libraty.

@axemclion
Copy link
Owner

This looks good. if you can send in a pull request, I can merge it in.

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

No branches or pull requests

2 participants