parent
297bc08105
commit
6124f8cce2
|
|
@ -167,9 +167,10 @@ async function onOpenNote(
|
|||
workspaceUID?: string;
|
||||
lineIndex?: number;
|
||||
sectionName?: string;
|
||||
forceTakeover?: boolean;
|
||||
} = {},
|
||||
) {
|
||||
if (!getPref("openNote.takeover")) {
|
||||
if (!options.forceTakeover && !getPref("openNote.takeover")) {
|
||||
ZoteroPane.openNoteWindow(noteId);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,7 +117,9 @@ You can find more information in the following links:
|
|||
showButtons: ["next"],
|
||||
showProgress: true,
|
||||
onBeforeRender: async ({ state: { step, controller } }) => {
|
||||
tabID = (await addon.hooks.onOpenNote(noteItem!.id, "tab")) as string;
|
||||
tabID = (await addon.hooks.onOpenNote(noteItem!.id, "tab", {
|
||||
forceTakeover: true,
|
||||
})) as string;
|
||||
|
||||
if (!tabID) {
|
||||
controller.abort();
|
||||
|
|
|
|||
Loading…
Reference in New Issue