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.
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.