Skip to content

Detects if the web page is loaded within an iOS UIWebView, inside an application.

Notifications You must be signed in to change notification settings

simpleweb/UIWebView-Detect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

UIWebView Detect

Detects if the web page is loaded within an iOS UIWebView, inside an application.

Usage

Add uiwebview-detect.js to your page

If a UIWebView is detected a CSS class of uiwebview will be added to the <html> tag of the page

You can also call UIWebViewDetector.isUIWebView() or $.isUIWebView() in your JavaScript (returns a Boolean)

Dependencies

Requires jQuery or Zepto (remove this requirement ideally)

Copyright 2012 Simpleweb Ltd

About

Detects if the web page is loaded within an iOS UIWebView, inside an application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages