More string interpolation

This commit is contained in:
Daniel Imms
2017-05-16 09:57:50 -07:00
parent 5fb30979c1
commit 67ca3a9334
+2 -2
View File
@@ -761,8 +761,8 @@ Terminal.loadAddon = function(addon, callback) {
*/
Terminal.prototype.updateCharSizeCSS = function() {
this.charSizeStyleElement.textContent =
'.xterm-wide-char{width:' + (this.charMeasure.width * 2) + 'px;}' +
'.xterm-normal-char{width:' + this.charMeasure.width + 'px;}'
`.xterm-wide-char{width:${this.charMeasure.width * 2}px;}` +
`.xterm-normal-char{width:${this.charMeasure.width}px;}`
}
/**