diff --git a/chrome/content/zotero/ingester/browser.js b/chrome/content/zotero/ingester/browser.js index 39643a3e6..846e787d4 100644 --- a/chrome/content/zotero/ingester/browser.js +++ b/chrome/content/zotero/ingester/browser.js @@ -173,7 +173,6 @@ Zotero_Ingester_Interface.contentLoad = function(event) { // if there's already a scrapable page in the browser window, and it's // still there, ensure it is actually part of the page, then return if(data.translators && data.translators.length && data.document.location) { - Zotero.debug("already scrapable?"); if(Zotero_Ingester_Interface.searchFrames(rootDoc, data.document)) { return; } else { @@ -327,6 +326,7 @@ Zotero_Ingester_Interface._getData = function(browser) { * Deletes the document object associated with a given browser window object */ Zotero_Ingester_Interface._deleteData = function(browser) { + if(!browser) return false; try { var key = browser.getAttribute("zotero-key"); if(Zotero_Ingester_Interface.browserData[key]) { diff --git a/chrome/content/zotero/ingester/browser.xul b/chrome/content/zotero/ingester/browser.xul index fe2313af5..d9a2bf502 100755 --- a/chrome/content/zotero/ingester/browser.xul +++ b/chrome/content/zotero/ingester/browser.xul @@ -1,4 +1,25 @@ +