provide zid in js so we can use it from client
This commit is contained in:
parent
0d28608db7
commit
effb1a0534
3
boot.php
3
boot.php
@ -990,7 +990,8 @@ class App {
|
||||
'$icon' => head_get_icon(),
|
||||
'$head_css' => head_get_css(),
|
||||
'$head_js' => head_get_js(),
|
||||
'$js_strings' => js_strings()
|
||||
'$js_strings' => js_strings(),
|
||||
'$zid' => get_my_address(),
|
||||
)) . $this->page['htmlhead'];
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
var updateInterval = {{$update_interval}};
|
||||
var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
|
||||
var zid = {{if $zid}}'{{$zid}}'{{else}}null{{/if}};
|
||||
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user