Skip to content

Fix compatibility issues with Firefox for Android #1

@UserIsntAvailable

Description

@UserIsntAvailable

Download mechanism doesn't work.

// https://stackoverflow.com/questions/13405129/create-and-save-a-file-with-javascript/53864791#53864791
const a = document.createElement("a");
a.href = url;
// FIX: For now just appending epoch timestamp.
a.download = `${namePrefix}-dump-${Date.now()}.json`;
document.body.appendChild(a);
a.click();

setTimeout(() => { document.body.removeChild(a); window.URL.revokeObjectURL(url); }, 0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions