Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛 Bug]: Persist page changes on a refresh. #9

Open
2 tasks done
wiseaidev opened this issue Mar 12, 2023 · 0 comments
Open
2 tasks done

[🐛 Bug]: Persist page changes on a refresh. #9

wiseaidev opened this issue Mar 12, 2023 · 0 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@wiseaidev
Copy link
Collaborator

👶 Getting Started
Please search the history to see if an issue already exists for the same problem.

  • I have searched the existing issues.
  • I have tested the latest version.

📝 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

  1. Toggle a button.
  2. Refresh the page.
  3. When you open the popup, your previous changes apply.

😯 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

@wiseaidev wiseaidev self-assigned this Mar 12, 2023
@wiseaidev wiseaidev added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant