Fix scope of Zotero_RecognizePDF_Dialog

When Window is accessed from another scope (e.g., ItemTreeView), the
`let` somehow prevents Zotero_RecognizePDF_Dialog from showing up on the
Window object like all the other objects loaded via <script>.
This commit is contained in:
Dan Stillman 2018-02-28 16:19:52 -05:00
parent 16f228b2a3
commit aff2bef3f5

View file

@ -32,7 +32,7 @@
* @namespace
*/
let Zotero_RecognizePDF_Dialog = new function () {
var Zotero_RecognizePDF_Dialog = new function () {
const SUCCESS_IMAGE = 'chrome://zotero/skin/tick.png';
const FAILURE_IMAGE = 'chrome://zotero/skin/cross.png';
const LOADING_IMAGE = 'chrome://zotero/skin/arrow_refresh.png';