Commit d9cf3126 authored by Tasso Evangelista's avatar Tasso Evangelista

Avoid null error

parent 9c058ef5
No preview for this file type
......@@ -7,6 +7,6 @@ const host = (
(process.env.NODE_ENV === 'development' ? 'http://localhost:3000' : null)
);
const useSsl = host.match(/^https/) !== null;
const useSsl = host && host.match(/^https:/) !== null;
export const Livechat = new LivechatClient({ host, protocol: 'ddp', useSsl });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment