모바일 기기 스크린 폭 저장 쿠키 코드 변경
This commit is contained in:
@ -76,7 +76,7 @@ var g4_cookie_domain = "<?=G4_COOKIE_DOMAIN?>";
|
||||
<script src="<?=G4_JS_URL?>/wrest.js"></script>
|
||||
<? if(G4_IS_MOBILE) { ?>
|
||||
<script>
|
||||
document.cookie = "device_width=" + screen.width;
|
||||
set_cookie("device_width", screen.width, 6, g4_cookie_domain);
|
||||
</script>
|
||||
<? } ?>
|
||||
<? if (!defined('G4_IS_ADMIN')) { echo $config['cf_add_script']; } ?>
|
||||
|
||||
Reference in New Issue
Block a user