You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
We ran into issues when doing async operations inside of an IndexedDB `onupgradeneeded` handler. The errors were ‘The transaction is not active’ or ‘Transaction has finished’. The following documentation confirmed that transactions are committed/terminated when control returns to the event loop: Spec - https://www.w3.org/TR/IndexedDB/#transaction-lifetime-concept - https://www.w3.org/TR/IndexedDB/#upgrade-transaction-construct Stack Overflow - https://stackoverflow.com/a/11059085 - https://stackoverflow.com/a/27338944 Since the initial database migration is so critical, I decided to avoid `idb` with promise support for IndexedDB for now, but will reconsider using it for other tasks in the future to improve readability of IndexedDB code. |
7 years ago | |
---|---|---|
.. | ||
models | 7 years ago | |
modules | 7 years ago | |
views | 7 years ago | |
.eslintrc | 7 years ago | |
Mp3LameEncoder.min.js | 8 years ago | |
WebAudioRecorderMp3.js | 8 years ago | |
background.js | 7 years ago | |
backup.js | 7 years ago | |
chromium.js | 8 years ago | |
conversation_controller.js | 7 years ago | |
database.js | 7 years ago | |
delivery_receipts.js | 8 years ago | |
emoji_util.js | 8 years ago | |
expire.js | 8 years ago | |
expiring_messages.js | 8 years ago | |
focus_listener.js | 7 years ago | |
i18n.js | 8 years ago | |
jquery.js | 8 years ago | |
keychange_listener.js | 8 years ago | |
libphonenumber-util.js | 10 years ago | |
libsignal-protocol-worker.js | 9 years ago | |
logging.js | 7 years ago | |
notifications.js | 7 years ago | |
read_receipts.js | 8 years ago | |
read_syncs.js | 8 years ago | |
registration.js | 7 years ago | |
reliable_trigger.js | 8 years ago | |
rotate_signed_prekey_listener.js | 8 years ago | |
signal_protocol_store.js | 7 years ago | |
spell_check.js | 8 years ago | |
storage.js | 7 years ago | |
wall_clock_listener.js | 8 years ago |