aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/head.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl/head.tpl')
-rwxr-xr-xview/tpl/head.tpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/view/tpl/head.tpl b/view/tpl/head.tpl
index bd4cf3747..ecb30afd3 100755
--- a/view/tpl/head.tpl
+++ b/view/tpl/head.tpl
@@ -9,11 +9,12 @@
{{$plugins}}
<script>
var updateInterval = {{$update_interval}};
+ var sse_enabled = {{$sse_enabled}};
var localUser = {{if $local_channel}}{{$local_channel}}{{else}}false{{/if}};
var zid = {{if $zid}}'{{$zid}}'{{else}}null{{/if}};
var justifiedGalleryActive = false;
{{if $channel_hash}}var channelHash = '{{$channel_hash}}';{{/if}}
- {{if $channel_id}}var channelId = '{{$channel_id}}';{{/if}}{{* Used in e.g. autocomplete *}}
+ var channelId = {{if $channel_id}}{{$channel_id}}{{else}}false{{/if}};{{* Used in e.g. autocomplete *}}
var preloadImages = {{$preload_images}};
var auto_save_draft = {{$auto_save_draft}};
</script>