Skip to content

Commit

Permalink
Fix typo in mobile os regex
Browse files Browse the repository at this point in the history
  • Loading branch information
LeafHacker committed Jan 31, 2021
1 parent 66b3dee commit a389e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ <h5>Having problems?</h5>
var platform = window.navigator.platform

// Assume 'Linux arm*' is android - see https://stackoverflow.com/a/19883965
if (/^(iP(hone|od|ad)|Android|Linux arm)]/.test(platform)) {
if (/^(iP(hone|od|ad)|Android|Linux arm)/.test(platform)) {
return 'mobile'
}

Expand Down

0 comments on commit a389e4f

Please sign in to comment.