Add IE11 deterrent
This commit is contained in:
parent
eaa5b063f4
commit
6dfbb830ef
4 changed files with 20 additions and 0 deletions
11
package-lock.json
generated
11
package-lock.json
generated
|
@ -9,6 +9,7 @@
|
|||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "^6.1.1",
|
||||
"@ledge/is-ie-11": "^7.0.0",
|
||||
"bulma": "^0.9.4",
|
||||
"elevator.js": "^1.0.1",
|
||||
"esbuild": "^0.14.43",
|
||||
|
@ -141,6 +142,11 @@
|
|||
"integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
|
||||
"dev": true
|
||||
},
|
||||
"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/@nodelib/fs.scandir": {
|
||||
"version": "2.1.5",
|
||||
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
|
||||
|
@ -3942,6 +3948,11 @@
|
|||
"integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
|
||||
"dev": true
|
||||
},
|
||||
"@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=="
|
||||
},
|
||||
"@nodelib/fs.scandir": {
|
||||
"version": "2.1.5",
|
||||
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "^6.1.1",
|
||||
"@ledge/is-ie-11": "^7.0.0",
|
||||
"bulma": "^0.9.4",
|
||||
"elevator.js": "^1.0.1",
|
||||
"esbuild": "^0.14.43",
|
||||
|
|
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/");
|
||||
}
|
|
@ -23,6 +23,8 @@
|
|||
|
||||
{% block extra_head %}{% endblock %}
|
||||
|
||||
<script async type="text/javascript" src="{% static 'js/ie11-deterrent.js' %}" integrity="{% sri_integrity_static 'js/ie11-deterrent.js' %}"></script>
|
||||
|
||||
{% sri_static "css/base.css" %}
|
||||
{% sri_static "contrib/fontawesome/css/all.min.css" %}
|
||||
{% sri_static "contrib/fira-code/fira_code.css" %}
|
||||
|
|
Loading…
Reference in a new issue