From 6e439423855ffa63ad6159dfde3b1a4786bd874f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 17 Nov 2014 23:19:04 -0500 Subject: [PATCH] Fix UI issues with Cyrillic mime types, hopefully --- chrome/content/zotero/xpcom/mime.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/chrome/content/zotero/xpcom/mime.js b/chrome/content/zotero/xpcom/mime.js index 68b644dcb..3e049bb1f 100644 --- a/chrome/content/zotero/xpcom/mime.js +++ b/chrome/content/zotero/xpcom/mime.js @@ -395,12 +395,8 @@ Zotero.MIME = new function(){ .getService(Components.interfaces.nsIAppShellService) .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){ + for (let type of types) { + if (type.type && type.type == mimeType) { Zotero.debug('MIME type ' + mimeType + ' can be handled by plugins'); return true; }