Skip to content

Commit f12db63

Browse files
fix(middleware): Actually serve the favicon.
1 parent d83fab9 commit f12db63

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/middleware/karma.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ var createKarmaMiddleware = function (filesPromise, serveStaticFile,
9696
})
9797
}
9898

99+
// serve the favicon
100+
if (requestUrl === '/favicon.ico') {
101+
return serveStaticFile(requestUrl, response)
102+
}
103+
99104
// serve context.html - execution context within the iframe
100105
// or debug.html - execution context without channel to the server
101106
if (requestUrl === '/context.html' || requestUrl === '/debug.html') {

0 commit comments

Comments
 (0)