Skip to content
Browse files

Fix script content type warning

  • Loading branch information...
1 parent c0f4001 commit b08d10f20fb6f9f83c4f9e647f6dbb4f47441c55 @andreyvit andreyvit committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 LiveReload/Classes/WebSockets/WebSocketServer.m
View
2 LiveReload/Classes/WebSockets/WebSocketServer.m
@@ -58,7 +58,7 @@ static int WebSocketServer_http_callback(struct libwebsocket_context * this,
if (in && strcmp(in, "/livereload.js") == 0) {
path = [[NSBundle mainBundle] pathForResource:@"livereload.js" ofType:nil];
NSCAssert(path != nil, @"File 'livereload.js' not found inside the bundle");
- libwebsockets_serve_http_file(wsi, [path fileSystemRepresentation], "text/plain");
+ libwebsockets_serve_http_file(wsi, [path fileSystemRepresentation], "text/javascript");
break;
}

0 comments on commit b08d10f

Please sign in to comment.
Something went wrong with that request. Please try again.