[www] minor refactoring and remove console.log

This commit is contained in:
Roman Timashev committed 2017-10-15 12:33:25 +03:00
1 parent 0ebf8c7185
commit c9a24c008b
4 files changed
+1 -26

No files matched your search

-15
View File
@@ -1,15 +0,0 @@
function redirectFragment() {
return async (ctx, next) => {
const query = ctx.query
console.log(query)
if ('_escaped_fragment_' in query) {
ctx.redirect(ctx.path)
} else {
await next()
}
}
}
module.exports = redirectFragment