brianleroux / lawnchair

A lightweight clientside JSON document store,
http://brianleroux.github.com/lawnchair
MIT License
2.13k stars 246 forks source link

Update html5 storage api #229

Closed wtrocki closed 7 years ago

wtrocki commented 7 years ago

Motivation

FileError is obsolete and was removed in most recent versions of the mobile browsers: https://developer.mozilla.org/en-US/docs/Web/API/FileError

In cases when file is not available library would fail with errror: FileError is undefined

This fix removes error I have seen on recent versions in chrome and fixefox I did not seen any other errors and rest of the html5 filesystem api seems to be working fine.

See also another fix to update it to work with recent browsers: #228