html - Firefox Appends .sql to Javascript Blob File -


i'm using code similar to:

var savedata = (function () {     var = document.createelement("a");     document.body.appendchild(a);     a.style = "display: none";     return function (data, filename) {         var json = json.stringify(data),             blob = new blob([json], {type: "text/plain"}),             url = window.url.createobjecturl(blob);         a.href = url;         a.download = filename;         a.click();         window.url.revokeobjecturl(url);     }; }());  var data = { x: 42, s: "hello, world", d: new date() },     filename = "my-download.geojson";  savedata(data, filename); 

to save geojson object mapping application building. when save file in firefox automatically appends .sql extension filename.

so instead of seeing "my-download.geojson", getting "my-download.geojson.sql"

has else experienced problem? how 1 go fixing it? works fine in chrome.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -