obeliskos #620 : added method and option to indexed adapter to close database
- this is diagnostic change to see if it will alleviate storage growth issues on webkit
- calling adapter.closeDatabase() will forcibly close the indexeddb database
- added options param to adapter constructor
- var adapter new LokiIndexedAdapter("myapp", { closeAfterSave: true });
- if passed the above, we will close db after every save
- the next call to saveDatabase after it has been closed will create a new database open request
- fixed typo in LokiSandbox.htm and modified indexed adapter to use closeAfterSave option for testing and diagnostics
Latest commit 44d0c35 Jul 16, 2018