FancyMenu [Fabric] [MOVED TO NEW PROJECT]

FancyMenu [Fabric] [MOVED TO NEW PROJECT]

17M Downloads

After reloading the webpage in a "Browser" element, the FancyMenu JavaScript API injected into browsers stops working

bluffcon opened this issue ยท 0 comments

commented

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.):

  1. have a browser element
  2. button that reloads the webpage
  3. the webpage reloads
  4. another button with a fancymenu action ex. quitgame
  5. 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
Image

Basic Information (please complete the following information):

  • fancymenu 3.7 for forge 1.20.1