Fix a MIMETypeHandler.removeHandler() bug

This commit is contained in:
Adomas Venčkauskas 2022-06-06 12:49:58 +03:00 committed by Dan Stillman
parent 1687d4caad
commit 44e8a372e5

View file

@ -108,7 +108,7 @@ Zotero.MIMETypeHandler = new function () {
else if (_typeHandlers[type]) {
var i = _typeHandlers[type].indexOf(handler);
if (i != -1) {
_typeHandlers.splice(i, 1);
_typeHandlers[type].splice(i, 1);
}
}
};