Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuxt-detect-ie

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-detect-ie

Nuxt Detect-IE

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 21 Apr 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc