We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f86c8b commit db86f60Copy full SHA for db86f60
live-view/live-view.js
@@ -844,6 +844,15 @@ async function handleLiveViewRequest(requestPath) {
844
// return modified file content
845
respContent = modFile.content;
846
847
+ // decode base64 file with browser
848
+ const dataURL = 'data:application/octet-stream;base64,' + respContent;
849
+
850
+ // send (instant) request
851
+ const response = await fetch(dataURL);
852
853
+ // get data from response
854
+ respObj = (await (response.body.getReader()).read()).value;
855
856
} else {
857
858
let respObj;
0 commit comments