Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit d5a63ba

Browse files
committed
Removed hardCoded Path
Using path.join() instead of hard coded path for global support. > Hard coded path with slash (/) will break in windows which uses backslashes.
1 parent 32c42ce commit d5a63ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ if (!isServer) {
7474
var app = connect()
7575
.use(reactMiddleware.provide(buildOptions))
7676
.use(connect['static'](FILE_SERVE_ROOT))
77-
.use(connect.favicon(path.join(FILE_SERVE_ROOT, 'elements/favicon/favicon.ico')))
77+
.use(connect.favicon(path.join(FILE_SERVE_ROOT, 'elements', 'favicon', 'favicon.ico')))
7878
.use(connect.logger())
7979
.use(connect.compress())
8080
.use(connect.errorHandler());

0 commit comments

Comments
 (0)