A customer of ours has filed a bug where our custom power-up button stops working if they leave a card open for an extended period of time. Clicking on the Power-up button after approximately 10 minutes yields the following console log:

export function cardButtons() {
return [
{
icon: logoGrayUrl,
text: 'Manage Time',
callback: function (t) {
return t.popup({
title: 'Manage Time',
items: [
{
text: 'Track time',
callback: startTimer,
},
{
text: 'Attach time report',
callback: attachHoursBreakdown,
},
],
})
},
},
]
}
window.TrelloPowerUp.initialize({
'board-buttons': boardButtons,
'attachment-sections': attachmentSections,
'card-buttons': cardButtons,
'format-url': formatUrl,
}) I'm guessing the context is going stale. Is there a solution for this that I can't seem to find?