Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MobileBrowserDetection::is_windows doesn't detect my emulators #16

Open
sminnee opened this issue Mar 31, 2012 · 0 comments
Open

MobileBrowserDetection::is_windows doesn't detect my emulators #16

sminnee opened this issue Mar 31, 2012 · 0 comments

Comments

@sminnee
Copy link
Member

sminnee commented Mar 31, 2012

From http://open.silverstripe.org/ticket/6005

I had to add "windows phone" to agent detection

public static function is_windows() {
    return (preg_match('/(windows ce; ppc;|windows ce; smartphone;|windows ce; iemobile|windows phone)/i', $_SERVER['HTTP_USER_AGENT'])) ? true : false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant