refer to >https://github.com/remotestorage/remotestorage.js/pull/783/files#r18951074