mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
#18055781 : change RE for OMNIA (old version has an issue that old mac-book (Power PC) was recognized as a smartphone)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6822 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e2eb092df4
commit
ef387556cb
1 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@
|
|||
var $content = null;
|
||||
|
||||
function isFromSmartPhone() {
|
||||
return Context::get('smartphone') || preg_match('/(iPopd|iPhone|PPC)/',$_SERVER['HTTP_USER_AGENT']);
|
||||
return Context::get('smartphone') || preg_match('/(iPod|iPhone|SCH\-M[0-9]+)/',$_SERVER['HTTP_USER_AGENT']);
|
||||
}
|
||||
|
||||
function haveSmartphoneModule($module) {
|
||||
|
|
@ -75,9 +75,9 @@
|
|||
}
|
||||
|
||||
function procSmartPhone($msg = null) {
|
||||
if(preg_match('/(iPopd|iPhone)/',$_SERVER['HTTP_USER_AGENT'])) {
|
||||
if(preg_match('/(iPod|iPhone)/',$_SERVER['HTTP_USER_AGENT'])) {
|
||||
Context::addHtmlHeader('<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>');
|
||||
} else if(preg_match('/PPC/',$_SERVER['HTTP_USER_AGENT'])) {
|
||||
} else if(preg_match('/SCH\-M[0-9]+/',$_SERVER['HTTP_USER_AGENT'])) {
|
||||
Context::addHtmlHeader('<meta name="viewport" content="width=240; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue