detect-msie
Advanced tools
Comparing version 1.0.2 to 1.0.3
import Vue from 'vue' | ||
import Router from 'vue-router' | ||
import HelloWorld from '@/components/HelloWorld' | ||
import Demo from '@/components/Demo' | ||
@@ -11,6 +11,6 @@ Vue.use(Router) | ||
path: '/', | ||
name: 'HelloWorld', | ||
component: HelloWorld | ||
name: 'Demo', | ||
component: Demo | ||
} | ||
] | ||
}) |
{ | ||
"name": "detect-msie", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
# Detect-Ie | ||
Detect Internet Explorer 7-11, Edge (>= 12). | ||
Detection of Internet Explorer 7-11 and Edge (>= 12), based on either Feature or User-Agent. | ||
## Install | ||
@@ -8,21 +8,21 @@ ``` | ||
## Usage | ||
Default detection is based on Feature, as it is a more reliable method. To use a User-Agent based detection instead, see options below. | ||
```js | ||
import { detectIe } from 'detect-msie' | ||
const detection = detectIe() | ||
const report = detectIe() | ||
// Available Queries: | ||
console.log(detection.isDetected) | ||
console.log(detection.isEdge) | ||
console.log(detection.isBelowEdge) | ||
console.log(detection.isIe7OrLower) | ||
console.log(detection.isIe7) | ||
console.log(detection.isIe8) | ||
console.log(detection.isIe9) | ||
console.log(detection.isIe10) | ||
console.log(detection.isIe11) | ||
console.log(detection.version) | ||
console.log(report.isDetected) | ||
console.log(report.isEdge) | ||
console.log(report.isBelowEdge) | ||
console.log(report.isIe7OrLower) | ||
console.log(report.isIe7) | ||
console.log(report.isIe8) | ||
console.log(report.isIe9) | ||
console.log(report.isIe10) | ||
console.log(report.isIe11) | ||
console.log(report.version) | ||
``` | ||
## Options | ||
#### `useUserAgent` | ||
@@ -29,0 +29,0 @@ * Type: `Boolean` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52446