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.
- Host: GitHub
- URL: https://github.com/simpleweb/uiwebview-detect
- Owner: simpleweb
- Created: 2012-06-29T10:54:44.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-06-29T11:10:44.000Z (almost 14 years ago)
- Last Synced: 2025-04-03T01:41:26.073Z (about 1 year ago)
- Language: CoffeeScript
- Size: 92.8 KB
- Stars: 7
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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