@ovh-ux/ng-ovh-browser-alert

Display an alert when your browser isn't supported

Usage no npm install needed!

<script type="module">
  import ovhUxNgOvhBrowserAlert from 'https://cdn.skypack.dev/@ovh-ux/ng-ovh-browser-alert';
</script>

README

ng-ovh-browser-alert

Display an alert when your browser isn't supported.

npm version Downloads Dependencies Dev Dependencies

Install

$ yarn add @ovh-ux/ng-ovh-browser-alert

Usage

// index.js
import ovhBrowserAlert from '@ovh-ux/ng-ovh-browser-alert';
import angular from 'angular';

angular.module('myApp', [ovhBrowserAlert]);
<!-- index.html -->
<ovh-browser-alert></ovh-browser-alert>
<!-- translations/Messages_en_GB.xml -->
<translation id="browser_alert_not_supported">Your browser is not supported and may contain security vulnerabilities.</translation>
<translation id="browser_alert_deprecated">Your browser is not up to date and may contain security or compatibility vulnerabilities.</translation>
<translation id="browser_alert_update">We recommend you to<a href="http://outdatedbrowser.com/fr" class="alert-link" target="_blank">update your browser</a> in order to benefit a better experience.</translation>
<translation id="browser_alert_close">Close</translation>

Test

$ yarn test

Contributing

Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, our contributing guide will help get you started.

License

BSD-3-Clause © OVH SAS