3.7.3 • Published 1 year ago

@baloise/web-app-unsupported-browsers v3.7.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

@baloise/web-app-unsupported-browsers

Continuous Release npm npm bundle size npm GitHub GitHub issues

This script verifies if the users browser is supported by the Baloise applications and if not it redirects directly to the static unsupported-browsers pages.

Installation

Fist we install the javascript package with npm.

npm install @baloise/web-app-unsupported-browsers

The javascript file needs to be served as a static file therefore use the package copyfiles

npm install copyfiles --save-dev

After installing our copyfiles dependency we need to define the copy command in our package.json file. Add a new script called copy:script and adjust the second path to your application.

Then we add the defined script copy:script in our postinstall script. Every time we install dependencies the copy:fonts script gets executed at the end.

"scripts": {
  "postinstall": "npm run copy:script",
  "copy:script": "copyfiles --flat node_modules/@baloise/web-app-unsupported-browsers/dist/* public/assets/js"
}

Lets add the script to the head of the entry html page.

<head>
  ...
  <script
    src="public/assets/js/baloise-unsupported-browsers.js"
    data-location="ch"
  ></script>
</head>

Attributes

The script supports two attributes:

  • data-location
    • default is ch
    • possible values are ch,be,lu and de
  • data-language
    • default is browser-language if supported and if not then the default of the location
      • ch would be de
      • be would be fr
      • lu would be fr
      • de would be de
3.7.1-beta.302

1 year ago

3.7.1-beta.304

1 year ago

3.7.1-beta.303

1 year ago

3.7.1-beta.305

1 year ago

3.7.3

1 year ago

3.6.4

2 years ago

3.7.2

1 year ago

3.6.3

2 years ago

3.7.2-beta.1

1 year ago

3.7.1

1 year ago

3.7.0

2 years ago

3.3.2-beta.4

2 years ago

3.3.2-beta.7

2 years ago

3.3.2-beta.8

2 years ago

3.3.2-beta.5

2 years ago

3.3.2-beta.6

2 years ago

3.3.2-beta.9

2 years ago

3.3.2-beta.20

2 years ago

3.3.2-beta.22

2 years ago

3.3.2-beta.24

2 years ago

3.3.2-beta.23

2 years ago

3.6.2

2 years ago

3.6.1

2 years ago

3.6.0

2 years ago

3.5.0

2 years ago

3.3.2-beta.14

2 years ago

3.3.2-beta.17

2 years ago

3.3.2-beta.16

2 years ago

3.3.2-beta.19

2 years ago

3.3.2-beta.18

2 years ago

3.3.2-beta.13

2 years ago

3.4.0

2 years ago

3.3.1

2 years ago

3.2.1

2 years ago

3.3.3

2 years ago

3.3.2

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.16

2 years ago

2.0.15

2 years ago

2.0.14

2 years ago

2.0.13

2 years ago