JS Error widget-html-render.twig | xiboIC.setTargetId not defined

My player (xibo-dotnetclient-4R402) doesn’t show any widgets. I’m using xibo-docker-4.0.9. I don’t know how the bundle.min.js is created, but it seems that an old version of xibo-interactive-control is used. The function setTargetId is missig which has been added on Nov 8.

We create this automatically for each build - currently pinned to a specific commit 44ad744a5a2a0af9e7fcdb828dbdbeff45cc40f0.

What leads you to think it isn’t right? (aside from not showing any widgets)

Hello Dan,

look at
/modules/widget-html.twig line 75: xiboIC.setTargetId(xiboICTargetId);

I run Firefox on the players PC (http://localhost:9696/1212.htm – the widget url). The javascript console prints the exception: Uncaught TypeError: xiboIC.setTargetId is not a function

Maybe changing the line to

if (typeof xiboIC.setTargetId === 'function') { 
   xiboIC.setTargetId(xiboICTargetId);
}

will prevent the exception.