brianleroux / lawnchair

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

Lawnchair, Angular, and Safari #198

Closed amay0048 closed 8 years ago

amay0048 commented 10 years ago

I'm currently writing an Angular interface in Safari. When I use the version from the website I get no problems (http://brian.io/lawnchair/downloads/lawnchair-0.6.1.min.js) but when I use (https://raw.githubusercontent.com/brianleroux/lawnchair/master/src/Lawnchair.js) Angular throws an Apater not Found error.

zugaldia commented 10 years ago

You need to manually include the adapters you want to use. For example, if you want to use dom and webkit-sqlite:

<script src="path/to/lawnchair/src/Lawnchair.js"></script>
<script src="path/to/lawnchair/src/adapters/dom.js"></script>
<script src="path/to/lawnchair/src/adapters/webkit-sqlite.js"></script>