Remove Zotero.Utilities.Internal.normalize()
It no longer works in Fx60, and String.prototype.normalize() has been available since 2014, so that should just be used instead.
This commit is contained in:
parent
8c7677a009
commit
4d7062fc43
1 changed files with 0 additions and 12 deletions
|
@ -360,18 +360,6 @@ Zotero.Utilities.Internal = {
|
|||
},
|
||||
|
||||
|
||||
/**
|
||||
* Unicode normalization
|
||||
*/
|
||||
"normalize":function(str) {
|
||||
var normalizer = Components.classes["@mozilla.org/intl/unicodenormalizer;1"]
|
||||
.getService(Components.interfaces.nsIUnicodeNormalizer);
|
||||
var obj = {};
|
||||
str = normalizer.NormalizeUnicodeNFC(str, obj);
|
||||
return obj.value;
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Return the byte length of a UTF-8 string
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue