eligrey / eligrey/FileSaver.js

Does not seem to work in palemoon

Open
#727 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
22k
Forks
4.3k
PR merge metrics
No merged PRs in 30d

Description

Hey there,

First the .html file I used - it may contain errors, I don't know:






How to Create and Save text file in JavaScript




function foobar() {
var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});
FileSaver.saveAs(blob, "foobar.md");
}





Click to Save


Anyway. I found FileSaver.js via an online tutorial.

https://www.websparrow.org/web/how-to-create-and-save-text-file-in-javascript

I built some backend via ruby and need a bit of javascript; simplest would be
if I could store data into a file anywhere. Right now it does not work.

But my issue request is not so much me wanting you to debug it - you don't
need to do that.

My issue request is more:

- Is there some FAQ that could be mentioned in the main README about
common installation and usage errors and problems? Perhaps some
example file that is standalone and guaranteed to work? That way I can
look at the file that is guaranteed to work (ideally a standalone .html
file), and then look what I did wrong, without having to ask anyone else.
I am fine tinkering on my own, but right now I simply can not say whether
palemoon is at fault or not (I may test with another browser but I think
I did something wrong altogether, so my usual procedure is now to
google some more, until I understand the situation of javascript saving
files better).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.