fix: openNote auto mode

fix: #997
This commit is contained in:
windingwind 2024-06-04 09:17:52 +08:00
parent cb637b8871
commit 83479f8d95
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@
</style>
<link rel="localization" href="__addonRef__-workspaceWindow.ftl" />
</head>
<body class="zotero-window">
<body class="zotero-window workspace-window">
<xul:commandset id="mainCommandSet">
<xul:command id="cmd_close" oncommand="window.close();" />
</xul:commandset>

View File

@ -186,7 +186,7 @@ function onOpenNote(
| HTMLElement
| undefined
)?.dataset.uid;
} else if (currentWindow?.document.querySelector("bn-workspace")) {
} else if (currentWindow?.document.querySelector("body.workspace-window")) {
mode = "preview";
workspaceUID = (
currentWindow.document.querySelector("bn-workspace") as