• Download a image (must be a data url).

    Parameters

    • dataUrl: null | string

      The data url of the image

    • filename: string

      The filename of the image

    Returns void

    const dataUrl = screenshot();
    saveImage(dataUrl, "screenshot.png");