Fix platformKeys initialization code running repeatedly

DOMContentLoaded bubbles up from note-editor and reader frames.
This commit is contained in:
Abe Jellinek 2024-10-22 14:47:22 -04:00
parent 8a6bc2cb10
commit cb62ab064d

View file

@ -1,4 +1,8 @@
window.addEventListener('DOMContentLoaded', () => {
window.addEventListener('DOMContentLoaded', (event) => {
if (event.currentTarget !== event.target) {
return;
}
// Don't need to depend on Zotero object here
let isWin = AppConstants.platform == 'win';
let isMac = AppConstants.platform == 'macosx';