mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:35:13 +00:00
set JS cookie
This commit is contained in:
parent
7459d2c9e3
commit
198264aaf9
1 changed files with 6 additions and 0 deletions
|
@ -245,6 +245,12 @@ if (file_exists($theme_info_file)){
|
|||
if(! x($a->page,'content'))
|
||||
$a->page['content'] = '';
|
||||
|
||||
/* set JS cookie */
|
||||
if($_COOKIE['jsAvailable'] != 1) {
|
||||
$a->page['content'] .= '<script>document.cookie="jsAvailable=1; path=/"; location.reload();</script>';
|
||||
}
|
||||
|
||||
|
||||
if(! $install)
|
||||
call_hooks('page_content_top',$a->page['content']);
|
||||
|
||||
|
|
Loading…
Reference in a new issue