Ensure we don't maintain document sessions across different doc processors

This commit is contained in:
Adomas Venčkauskas 2018-09-10 08:40:37 +03:00
parent dd9ee66212
commit 0cb683ab18

View file

@ -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;
}