mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Fix platformKeys initialization code running repeatedly
DOMContentLoaded bubbles up from note-editor and reader frames.
This commit is contained in:
parent
8a6bc2cb10
commit
cb62ab064d
1 changed files with 5 additions and 1 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue