From 226928f1e98f71934a497fefac9df515eb79e9d1 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 21 Oct 2014 00:45:48 -0400 Subject: [PATCH] Debugging for "types[i] is undefined" error --- chrome/content/zotero/xpcom/mime.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/mime.js b/chrome/content/zotero/xpcom/mime.js index 0557fd0fa..68b644dcb 100644 --- a/chrome/content/zotero/xpcom/mime.js +++ b/chrome/content/zotero/xpcom/mime.js @@ -396,6 +396,10 @@ Zotero.MIME = new function(){ .hiddenDOMWindow.navigator.mimeTypes; for (var i in types){ + // DEBUG + Zotero.debug('======='); + Zotero.debug(i); + Zotero.debug(types[i].type); if (types[i].type && types[i].type == mimeType){ Zotero.debug('MIME type ' + mimeType + ' can be handled by plugins'); return true;