eligrey / FileSaver.js

An HTML5 saveAs() FileSaver implementation
https://eligrey.com/blog/saving-generated-files-on-the-client-side/
Other
21.42k stars 4.38k forks source link

Does not seem to work in palemoon #727

Open rubyFeedback opened 2 years ago

rubyFeedback commented 2 years ago

Hey there,

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

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>How to Create and Save text file in JavaScript</title>
<script src="https://github.com/eligrey/FileSaver.js"></script>

<script>

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

</script>
</head>
<body>

<button type="button" onclick="foobar();">Click to Save</button>

</body>
 </html>

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: