Skip to content

Download of files disabled in built-in Chromium? #246

Open
@ghost

Description

Is download of files disabled in the current chromium version used by OverlayPlugin? I tried creating a link and simulating a click with click() to download a stringified object but it looks like it doesn't work (no errors in console). I can import/read files just fine by simulating click() on an input tag though.

Example:

    const dataStr = "data:text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(settings));
    const link = document.createElement("a");
    link.setAttribute("href", dataStr);
    link.setAttribute("download", "settings.json");
    e.target.parentElement.appendChild(link);
    link.click();
    e.target.parentElement.removeChild(link)

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