Ensure we don't maintain document sessions across different doc processors
This commit is contained in:
parent
dd9ee66212
commit
0cb683ab18
1 changed files with 3 additions and 1 deletions
|
@ -437,7 +437,9 @@ Zotero.Integration = new function() {
|
|||
|
||||
session = Zotero.Integration.sessions[data.sessionID];
|
||||
}
|
||||
if (!session) {
|
||||
// Make sure we don't maintain the session if agent changes (i.e. LO -> Word)
|
||||
// and display wrong field types in doc preferences.
|
||||
if (!session || session.agent != agent) {
|
||||
session = new Zotero.Integration.Session(doc, app);
|
||||
session.reload = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue