simplified app/main.js a bit
This commit is contained in:
parent
4557a352f8
commit
b1db7ac312
2 changed files with 12 additions and 24 deletions
|
@ -39,8 +39,16 @@ module.exports = function(state) {
|
|||
var isIE = /trident\\\/7\.|msie/i.test(navigator.userAgent);
|
||||
var isUnsupportedPage = /\\\/unsupported/.test(location.pathname);
|
||||
if (isIE && !isUnsupportedPage) {
|
||||
window.location.replace('/unsupported/ie');
|
||||
window.location.assign('/unsupported/ie');
|
||||
}
|
||||
if (
|
||||
// Firefox < 50
|
||||
/firefox/i.test(navigator.userAgent) &&
|
||||
parseInt(navigator.userAgent.match(/firefox\\/*([^\\n\\r]*)\./i)[1], 10) < 50
|
||||
) {
|
||||
window.location.assign('/unsupported/outdated');
|
||||
}
|
||||
|
||||
var LIMITS = {
|
||||
ANON: {
|
||||
MAX_FILE_SIZE: ${config.anon_max_file_size},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue