After reloading the webpage in a "Browser" element, the FancyMenu JavaScript API injected into browsers stops working
bluffcon opened this issue ยท 0 comments
Describe the bug
after reloading the current screen with a js function like location.reload() the fancymenu api falls off. for example, you can have a button that changes a fancymenu variable to a different value in a browser element. you can press it and it will work. but if you open the same browser element and reload it once, then the button stops executing fancymenu actions, fancymenu becomes undefined.
To Reproduce
Steps to reproduce the behavior (e.g.):
- have a browser element
- button that reloads the webpage
- the webpage reloads
- another button with a fancymenu action ex. quitgame
- the fancymenu api button doesnt work anymore
Expected behavior
id expect the fancymenu button to work regardless of page reloads
Screenshots
reloaded, then tried to quit

Basic Information (please complete the following information):
- fancymenu 3.7 for forge 1.20.1