Skip to content

Commit

Permalink
fix #54
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatandrei committed May 24, 2020
1 parent b65336d commit 57889ee
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,12 @@ private static void mapStorage(IApplicationBuilder appBuilder)
{
app.Run(async cnt =>
{
cnt.Response.ContentType = "application/javascript";
string nameFile = "extensions/SaveToSqliteStorage.js";
var f = manifestEmbeddedProvider.GetFileInfo("blocklyFiles/" + nameFile);
//TODO: add corect mime type for js files
using var stream = new MemoryStream();
using var cs = f.CreateReadStream();
byte[] buffer = new byte[2048]; // read in chunks of 2KB
Expand Down

0 comments on commit 57889ee

Please sign in to comment.