Disable logging for tag truncation issue

This commit is contained in:
Dan Stillman 2019-03-31 07:39:06 -04:00
parent 3ca5ac421c
commit 2f43ea82f9

View file

@ -362,10 +362,7 @@ Zotero.TagSelector = class TagSelectorContainer extends React.PureComponent {
let width = widths.get(name);
if (width === undefined) {
width = this.getTextWidth(name, hasColor ? fontBold : font);
// TEMP
if (Zotero.Debug.enabled) {
Zotero.debug(`Calculated ${hasColor ? 'bold ' : ''}width of ${width} for tag '${name}'`);
}
//Zotero.debug(`Calculated ${hasColor ? 'bold ' : ''}width of ${width} for tag '${name}'`);
widths.set(name, width);
}
return width;