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

importExport.js add event listener only if necessary #113

Open
Tracked by #111
erikyo opened this issue Feb 1, 2024 · 0 comments
Open
Tracked by #111

importExport.js add event listener only if necessary #113

erikyo opened this issue Feb 1, 2024 · 0 comments

Comments

@erikyo
Copy link
Collaborator

erikyo commented Feb 1, 2024

we need to check first if we are on the cf7a options page before adding the listener

this has to be fixed (a ? before the lister is enough):

document
.getElementById('cf7a_download_button')
.addEventListener('click', () => downloadOptions());
document
.getElementById('import-export-options')
.addEventListener('submit', (e) => importExportOptions(e));

@erikyo erikyo mentioned this issue Feb 1, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant