* [misc] fix the title issues of think3c.
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user