I have a plugin that generates objects to aid in workshops online and providing visual aids to them on Miro, the object creation itself is done by a logged in user, but I want to do some updates to a card object that are done by users who are joining in that are not logged in.
I just want to change the color and rotation of a card, is this possible?
I’ved added
async function checkCardMovments( widget_id ){
await miro.board.widgets.update({ id: widget_id,
rotation: 0,
style: { backgroundColor: '#FCEEF0'} })}
miro.onReady(() => {
miro.addListener('WIDGETS_TRANSFORMATION_UPDATED', (e) => {if( (e.data.length == 1) && ( e.datap0].type == 'CARD' ) ){
checkCardMovments(e.datae0].id)
}
})
}
to the miro.onReady of the js file that is initializing the plugin, it works fine if I am a logged in user but the callback doesn’t seem to run at all if its an anon user.