Commit f8f48e47 authored by Christopher Fullarton's avatar Christopher Fullarton

Adds required js features to the unsupported check (Dropping MS Browser support for now)

parent 3f2cfc81
Pipeline #34011 passed with stages
in 15 minutes and 1 second
......@@ -159,6 +159,8 @@ export class UserService {
}).toPromise().catch(() => resolve(false));
if (!data) {
this.isLoggedIn = false;
resolve(false);
return;
}
......
......@@ -58,6 +58,10 @@
{label: 'Video', value: Modernizr.video, required: false, linkRef: '#feat=video'},
{label: 'WebSockets', value: Modernizr.websockets, required: true, linkRef: '#feat=websockets'},
{label: 'XHR-Response', value: Modernizr.xhrresponsetype, required: true, linkRef: '#feat=xhr2'},
{label: 'Uint8Array', value: 'Uint8Array' in window, required: true, linkRef: '#feat=mdn-javascript_builtins_uint8array'},
{label: 'TextEncoder', value: 'TextEncoder' in window, required: true, linkRef: '#feat=textencoder'},
{label: 'TextDecoder', value: 'TextDecoder' in window, required: true, linkRef: '#feat=mdn-api_textdecoder'},
{label: 'Object.assign', value: 'assign' in Object, required: false, linkRef: '#feat=es6'},
]
;
......@@ -89,4 +93,4 @@
src="/assets/js/modernizr/modernizr-custom.js"></script>
</body>
</html>
\ No newline at end of file
</html>
......@@ -127,6 +127,9 @@
Modernizr.websockets,
Modernizr.xhrresponsetype,
'indexedDB' in window,
'Uint8Array' in window,
'TextEncoder' in window,
'TextDecoder' in window,
].forEach(function (test) {
if (!test) {
location.href = '/assets/static/unsupported.html';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment