Skip to content

importExport.js add event listener only if necessary #113

@erikyo

Description

@erikyo

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));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions