just out of interest, where did you get that btt.getVariable() from? It does not and has never existed. The correct
functions are listed here:
https://docs.folivora.ai/docs/10_2_floating_menu_javascript.html
And best only call them after the BTTInitialized() function has been called:
https://docs.folivora.ai/docs/10_4_webview_lifecycle.html
Here is a full example: