Kick off IE11 users
This commit is contained in:
parent
6e2cf75583
commit
a06b409e02
4 changed files with 21 additions and 0 deletions
|
@ -10,6 +10,9 @@
|
|||
|
||||
{{ partial "favicon.html" }}
|
||||
|
||||
<!-- Intentionally early, to prevent the rest of the page rendering -->
|
||||
{{ partial "script_async.html" "js/ie11-deterrent.js" }}
|
||||
|
||||
{{ partial "style.html" "scss/style.scss" }}
|
||||
{{ partial "style.html" "css/font-awesome.css" }}
|
||||
|
||||
|
|
11
package-lock.json
generated
11
package-lock.json
generated
|
@ -9,6 +9,7 @@
|
|||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "5.15.3",
|
||||
"@ledge/is-ie-11": "^7.0.0",
|
||||
"bootstrap": "4.6.1",
|
||||
"elevator.js": "1.0.1",
|
||||
"jquery": "3.6.0",
|
||||
|
@ -103,6 +104,11 @@
|
|||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/@ledge/is-ie-11": {
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@ledge/is-ie-11/-/is-ie-11-7.0.0.tgz",
|
||||
"integrity": "sha512-+GYssT+YJ41STf0D/rgPgDDLf88cUKkRZhlh4+P7+JNl5ZhA4Pji1x8WRHrOA1ttaZCk1ootFW1WvRaGom5rmw=="
|
||||
},
|
||||
"node_modules/@types/color-name": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",
|
||||
|
@ -7654,6 +7660,11 @@
|
|||
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.3.tgz",
|
||||
"integrity": "sha512-rFnSUN/QOtnOAgqFRooTA3H57JLDm0QEG/jPdk+tLQNL/eWd+Aok8g3qCI+Q1xuDPWpGW/i9JySpJVsq8Q0s9w=="
|
||||
},
|
||||
"@ledge/is-ie-11": {
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@ledge/is-ie-11/-/is-ie-11-7.0.0.tgz",
|
||||
"integrity": "sha512-+GYssT+YJ41STf0D/rgPgDDLf88cUKkRZhlh4+P7+JNl5ZhA4Pji1x8WRHrOA1ttaZCk1ootFW1WvRaGom5rmw=="
|
||||
},
|
||||
"@types/color-name": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "5.15.3",
|
||||
"@ledge/is-ie-11": "^7.0.0",
|
||||
"bootstrap": "4.6.1",
|
||||
"elevator.js": "1.0.1",
|
||||
"jquery": "3.6.0",
|
||||
|
|
6
static/src/js/ie11-deterrent.js
Normal file
6
static/src/js/ie11-deterrent.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
const { isIE11 } = require('@ledge/is-ie-11');
|
||||
|
||||
if (isIE11()) {
|
||||
// Stop using internet explorer!
|
||||
window.location.assign('https://stopinternetexplorer.com/');
|
||||
}
|
Loading…
Reference in a new issue