fallback in case of CanvasRenderer
This commit is contained in:
parent
3e904447d3
commit
8016cf3c1a
4 changed files with 18 additions and 9 deletions
|
@ -10,8 +10,8 @@ import { onDestroy } from 'svelte';
|
|||
const playerWokaPictureStore = gameScene.getUserWokaPictureStore(userId);
|
||||
|
||||
let src = placeholderSrc;
|
||||
const unsubscribe = playerWokaPictureStore.picture.subscribe((htmlElement) => {
|
||||
src = htmlElement?.src ?? placeholderSrc;
|
||||
const unsubscribe = playerWokaPictureStore.picture.subscribe((source) => {
|
||||
src = source ?? placeholderSrc;
|
||||
});
|
||||
|
||||
onDestroy(unsubscribe);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue