wikitree / wikitree-browser-extension

Browser extension that adds advanced features to WikiTree.com.
MIT License
27 stars 24 forks source link

Backup and restore enhancements #560

Closed jonathanduke closed 7 months ago

jonathanduke commented 7 months ago

These are my changes to the backup/restore process. It handles the cross-tab messaging in a more stable way. It will try each WikiTree tab sequentially, and if one fails to receive the message, it will move to the next one. Additional error messages have also been added.

Some additional changes related to Riel's save-restore branch have also been merged in, but this PR excludes any changes to the file format, the indexedDB tables, and the semaphore fix.

The semaphore may not be needed. The bug appears to be that common.js is loading twice ONLY on the Special:Home page, and that was causing the issue. I have not tracked that down yet.