How to use browser-update - 1 common examples

To help you get started, we’ve selected a few browser-update examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bcgov / gwells / app / frontend / src / common / helpers / browserUpdate.js View on Github external
import browserUpdate from 'browser-update'

const config = {
  required: { e: -4, f: -3, o: -3, s: -1, c: -3 },
  insecure: true,
  unsupported: true,
  reminder: 0,
  reminderClosed: 1.1,
  no_permanent_hide: true,
  noclose: true,
  shift_page_down: false,
  api: 2010.01,
  text: '<strong>The Groundwater Wells and Aquifers application will not work correctly on ({brow_name}).</strong><br>We recommend Chrome, Firefox or Safari.<br>Update browser'
}

browserUpdate(config)

browser-update

Remind users to update their browser in an unobtrusive way.

MIT
Latest version published 25 days ago

Package Health Score

71 / 100
Full package analysis

Popular browser-update functions