Merge pull request #250 from aurimasv/parentTranslator
parentTranslator in detect calls
This commit is contained in:
commit
42d15bf2db
1 changed files with 3 additions and 2 deletions
|
@ -1353,6 +1353,7 @@ Zotero.Translate.Base.prototype = {
|
|||
this._generateSandbox();
|
||||
}
|
||||
|
||||
this._currentTranslator = translator;
|
||||
this._runningAsyncProcesses = 0;
|
||||
this._returnValue = undefined;
|
||||
this._aborted = false;
|
||||
|
@ -1440,8 +1441,8 @@ Zotero.Translate.Base.prototype = {
|
|||
this._sandboxManager.sandbox.Zotero.isConnector = Zotero.isConnector || false;
|
||||
this._sandboxManager.sandbox.Zotero.isServer = Zotero.isServer || false;
|
||||
this._sandboxManager.sandbox.Zotero.parentTranslator = this._parentTranslator
|
||||
&& this._parentTranslator.translator && this._parentTranslator.translator[0] ?
|
||||
this._parentTranslator.translator[0].translatorID : null;
|
||||
&& this._parentTranslator._currentTranslator ?
|
||||
this._parentTranslator._currentTranslator.translatorID : null;
|
||||
|
||||
// create shortcuts
|
||||
this._sandboxManager.sandbox.Z = this._sandboxManager.sandbox.Zotero;
|
||||
|
|
Loading…
Reference in a new issue