mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Use correct content type for downloading flows.json
This commit is contained in:
		| @@ -37,13 +37,13 @@ RED.clipboard = (function() { | ||||
|             // IE11 workaround | ||||
|             // IE does not support data uri scheme for downloading data | ||||
|             var blob = new Blob([data], { | ||||
|                 type: "data:json/application;charset=utf-8" | ||||
|                 type: "data:application/json;charset=utf-8" | ||||
|             }); | ||||
|             navigator.msSaveBlob(blob, file); | ||||
|         } | ||||
|         else { | ||||
|             var element = document.createElement('a'); | ||||
|             element.setAttribute('href', 'data:json/application;charset=utf-8,' + encodeURIComponent(data)); | ||||
|             element.setAttribute('href', 'data:application/json;charset=utf-8,' + encodeURIComponent(data)); | ||||
|             element.setAttribute('download', file); | ||||
|             element.style.display = 'none'; | ||||
|             document.body.appendChild(element); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user