[🐛 Bug]: Persist page changes on a refresh. #9
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
👶 Getting Started
Please search the history to see if an issue already exists for the same problem.
📝 Describe the bug
When you refresh a page, all changes are gone. For that reason, I tried to create a function that calls all functions to set the previous changes, based on the storage values:
https://github.com/wiseaidev/flexify/blob/07b43237c134512f23e4e993b5e54da883a5fd82/scripts/popup.js#L64-L92
However, the
onload
is being fired based on the popup window, and not the browser/page window.🕹 Steps to reproduce
😯 Current behavior
The
onload
is being fired based on the popup window, and not the browser/page window.🤔 Expected behavior
Apply the changes stored in local storage based on the webpage refresh event, and not the popup.
📸 Screenshots
N/A
🔦 Additional context
N/A
The text was updated successfully, but these errors were encountered: