* [misc] fix the title issues of think3c.

This commit is contained in:
wangzemei
2024-10-21 09:46:47 +08:00
committed by 刘刚
parent cca0106cfb
commit 5c36278cf1
+1 -1
View File
@@ -766,7 +766,7 @@ window.drawRegionTitle = function(canvas, region, colorIndex, blocks)
const block = String.fromCharCode(97 + colorIndex);
const $title = document.createElement('div');
const value = typeof blocks[colorIndex] == 'string' ? blocks[colorIndex] : block;
const value = blocks[colorIndex] ? blocks[colorIndex]?.text : block;
$title.innerHTML = value;
$title.title = value;
$title.id = `title_${colorIndex}`;