https://github.com/afeiship/next-is-wk-webview
Detect if is wkwebview.
https://github.com/afeiship/next-is-wk-webview
detect next uiwebview webview wk wkwebview
Last synced: about 2 months ago
JSON representation
Detect if is wkwebview.
- Host: GitHub
- URL: https://github.com/afeiship/next-is-wk-webview
- Owner: afeiship
- License: mit
- Created: 2020-08-12T02:37:01.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-20T09:19:27.000Z (over 5 years ago)
- Last Synced: 2025-01-06T08:08:36.753Z (over 1 year ago)
- Topics: detect, next, uiwebview, webview, wk, wkwebview
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-is-wk-webview
> Detect if is wkwebview.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```bash
npm install -S @jswork/next-is-wk-webview
```
## usage
```js
import '@jswork/next-is-wk-webview';
nx.isWkWebview(); // true/false
```
## resources
- https://stackoverflow.com/questions/28795476/detect-if-page-is-loaded-inside-wkwebview-in-javascript
## license
Code released under [the MIT license](https://github.com/afeiship/next-is-wk-webview/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-is-wk-webview
[version-url]: https://npmjs.org/package/@jswork/next-is-wk-webview
[license-image]: https://img.shields.io/npm/l/@jswork/next-is-wk-webview
[license-url]: https://github.com/afeiship/next-is-wk-webview/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-is-wk-webview
[size-url]: https://github.com/afeiship/next-is-wk-webview/blob/master/dist/next-is-wk-webview.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-wk-webview
[download-url]: https://www.npmjs.com/package/@jswork/next-is-wk-webview