Avoid erroring if the front object is undefined.

This commit is contained in:
Paulo Reis 2018-02-21 13:29:11 +00:00 committed by James Allen
parent f1a36919f9
commit 12233a23c9

View file

@ -1,4 +1,4 @@
- if (settings.overleaf && settings.front.chat_room_id != null)
- if (settings.overleaf && settings.front && settings.front.chat_room_id != null)
script.
window.FCSP = '#{settings.front.chat_room_id}';
script(src="https://chat-assets.frontapp.com/v1/chat.bundle.js")