]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
More string interpolation
authorDaniel Imms <daimms@microsoft.com>
Tue, 16 May 2017 16:57:50 +0000 (09:57 -0700)
committerDaniel Imms <daimms@microsoft.com>
Tue, 16 May 2017 16:57:50 +0000 (09:57 -0700)
src/xterm.js

index b4bcdcd4de381658f26c8da070cbed3c50491dbe..c632eb705f48a25d152a3f749b3d2156472d848e 100644 (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;}`
 }
 
 /**