{"size": 705, "ext": "js", "max_stars_repo_path": "dist/index.js", "max_stars_repo_name": "afeiship/next-is-wk-webview", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dist/index.js", "max_issues_repo_name": "afeiship/next-is-wk-webview", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/index.js", "max_forks_repo_name": "afeiship/next-is-wk-webview", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.1111111111, "max_line_length": 76, "alphanum_fraction": 0.6382978723}
/*!
 * name: @jswork/next-is-wk-webview
 * description: Detect if is wkwebview.
 * homepage: https://github.com/afeiship/next-is-wk-webview
 * version: 1.0.0
 * date: 2020-11-20 17:19:04
 * license: MIT
 */

(function () {
  var global = global || this || window || Function('return this')();
  var nx = global.nx || require('@jswork/next');
  var iOS = navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false;
  var isWKWebView = false;
  if (global.webkit && global.webkit.messageHandlers) {
    isWKWebView = true;
  }

  nx.isWkWebview = function () {
    return iOS && isWKWebView;
  };

  if (typeof module !== 'undefined' && module.exports) {
    module.exports = nx.isWkWebview;
  }
})();
