change to offscreen canvas
This commit is contained in:
parent
8f86f80eb5
commit
2dcc33f210
3 changed files with 28 additions and 15 deletions
|
|
@ -421,6 +421,8 @@ class WeatherDisplay {
|
|||
} else if (value?.type === 'img') {
|
||||
// fill the image source
|
||||
elem.querySelector('img').src = value.src;
|
||||
} else if (value?.type === 'canvas') {
|
||||
elem.append(value.canvas);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue