Skip to content
Snippets Groups Projects
Commit 46f78980 authored by Gabriel Engel's avatar Gabriel Engel Committed by GitHub
Browse files

Merge pull request #4392 from RocketChat/livechat-fix-popout

Fix popout mode for livechat
parents 990de216 4affcd4b
No related branches found
No related tags found
No related merge requests found
/* globals WebApp:true */ /* globals WebApp:true */
import url from 'url';
WebApp = Package.webapp.WebApp; WebApp = Package.webapp.WebApp;
const Autoupdate = Package.autoupdate.Autoupdate; const Autoupdate = Package.autoupdate.Autoupdate;
WebApp.connectHandlers.use('/livechat/', Meteor.bindEnvironment((req, res, next) => { WebApp.connectHandlers.use('/livechat', Meteor.bindEnvironment((req, res, next) => {
if (req.url !== '/') { const reqUrl = url.parse(req.url);
if (reqUrl.pathname !== '/') {
return next(); return next();
} }
res.setHeader('content-type', 'text/html; charset=utf-8'); res.setHeader('content-type', 'text/html; charset=utf-8');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment