Skip to content

Load libraty on browser without indexedDB support #69

@faiwer

Description

@faiwer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions