Socket
Socket
Sign inDemoInstall

nuxt-detect-ie

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nuxt-detect-ie

Nuxt Detect-IE


Version published
Weekly downloads
8
increased by14.29%
Maintainers
1
Install size
6.10 kB
Created
Weekly downloads
 

Readme

Source

nuxt-detect-ie

npm i nuxt-detect-ie

Simple

// nuxt.config.js
modules: [
  'nuxt-detect-ie'
]

With options

// nuxt.config.js
modules: [
  ['nuxt-detect-ie', {
    // default options
    redirect: '/please-use-a-modern-browser.html',
    redirectToEdge: false,
    title: 'Unsupported browser',
    text: "This website doesn't work in Internet Explorer.<br>...",
    backgroundColor: '#fff',
    textColor: '#fff',
    modalBackground: '#1749dc'
  }]
]

🔧 Options

optiondefaultinfo
redirect/please-use-a-modern-browser.htmlSet to false to disable redirect - then you'll be able to check if the browser is Internet Explorer with $isIE
To add a custom page you need to create an HTML file in the static folder
(example: /custom-page.html)
redirectToEdgefalseOpen website in the Edge browser
title'Unsupported browser'-
text'This website doesn't work in Internet Explorer.
We only support the major browsers like Chrome, Firefox, Safari and Edge.'
-
backgroundColor'#fff'-
textColor'#fff'-
modalBackground'#1794dc'-

If redirect and redirectToEdge are set to false you can use $isIE to check if the browser is Internet Explorer

Keywords

FAQs

Last updated on 21 Apr 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc