Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
stustanet
speedtest
Commits
1bcf6681
Commit
1bcf6681
authored
Feb 03, 2019
by
adolfintel
Browse files
Added quirk for PS4 browser
parent
1ecadbdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
speedtest_worker.js
View file @
1bcf6681
...
...
@@ -147,6 +147,10 @@ this.addEventListener("message", function(e) {
//Edge 15 introduced a bug that causes onprogress events to not get fired, we have to use the "small chunks" workaround that reduces accuracy
settings
.
forceIE11Workaround
=
true
;
}
if
(
/PlayStation 4.
(\d
+
\.\d
+
)
/i
.
test
(
ua
))
{
//PS4 browser has the same bug as IE11/Edge
settings
.
forceIE11Workaround
=
true
;
}
if
(
/Chrome.
(\d
+
)
/i
.
test
(
ua
)
&&
/Android|iPhone|iPad|iPod|Windows Phone/i
.
test
(
ua
))
{
//cheap af
//Chrome mobile introduced a limitation somewhere around version 65, we have to limit XHR upload size to 4 megabytes
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment