Skip to content

Missing var declaration for toggleCopyButton function #20

@francoismajor

Description

@francoismajor

This returns an error. (button is not defined) The function still works, but 'Copied!' text is not displayed.

button = document.getElementById(app.prefix('-button-copy'));

buttonText = document.getElementById(app.prefix('-button-text-copy'));

Simple fix:
var button = document.getElementById(t.prefix('-button-copy'));
var buttonText = document.getElementById(t.prefix('-button-text-copy'));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions