瀏覽代碼

Fix attribute string formatting (#868)

Lutz Roeder 4 年之前
父節點
當前提交
64066fe5d6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/view-sidebar.js

+ 1 - 1
source/view-sidebar.js

@@ -527,7 +527,7 @@ class NodeAttributeView {
                 if (content && content.length > 1000) {
                     content = content.substring(0, 1000) + '\u2026';
                 }
-                if (content && typeof text === 'string') {
+                if (content && typeof content === 'string') {
                     content = content.split('<').join('&lt;').split('>').join('&gt;');
                 }
                 const line = this._host.document.createElement('div');