An open API service indexing awesome lists of open source software.

https://github.com/simpleweb/uiwebview-detect

Detects if the web page is loaded within an iOS UIWebView, inside an application.
https://github.com/simpleweb/uiwebview-detect

Last synced: 9 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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 `` 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