Menu Item - JavaScript error when it runs the 2nd time

Damn sorry, I typed this on my smartphone yesterday and forgot a "=>"

It should be

(async () => {

const daysRem = Math.ceil((new Date(new Date().getFullYear(), new Date().getMonth() + 1, 1) - new Date()) / (1000 * 60 * 60 * 24));
returnToBTT(daysRem);

})()
1 Like