Javiondox / html-to-scene

A FoundryVTT module that allows embedding HTML files on scenes.
MIT License
6 stars 2 forks source link

Force refresh to clear cache #20

Closed pushstartvr closed 1 year ago

pushstartvr commented 1 year ago

hello, i have a page updating every 5 seconds, while attempting to develop it it keeps loading a cached version. where can i add a force refresh in the code? cheers

pushstartvr commented 1 year ago

I had to delete the world and make a new one to get the new version of the web page. the problem i have now is that every time the HTML refreshes it reverts to position 0,0 instead of where all the action is

pushstartvr commented 1 year ago

when I view it in a web page it has the desired functionality, reverts to previous positon on page refresh. this means that it is foundry controlling this positon. I've found the refreshIFrame() function and set global variables for x and y. what should I be updating x and y with from Foundry? the Scene Class? im a noob

pushstartvr commented 1 year ago

just figured out that the y axis value is maintained, it's only the x axis value that resets to 0

pushstartvr commented 1 year ago

well.... I WAS hoping to use this as the actual game board but it seems you cant do that. I'm just looking for a way to update the map without having to upload a new image every time sorry to bother you