Debugging for "types[i] is undefined" error

This commit is contained in:
Dan Stillman 2014-10-21 00:45:48 -04:00
parent 6c814e2fa2
commit 226928f1e9

View file

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