Skip to content

Commit

Permalink
check WeChat
Browse files Browse the repository at this point in the history
  • Loading branch information
godwin668 committed Nov 16, 2016
1 parent 7f6a607 commit 9ad57d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,10 @@ if (typeof PDFJS === 'undefined') {

// Range requests are broken in Chrome 39 and 40, https://crbug.com/442318
var isChromeWithRangeBug = /Chrome\/(39|40)\./.test(navigator.userAgent);

var isWeChat = /micromessenger/.test(navigator.userAgent);

if (isSafari || isOldAndroid || isChromeWithRangeBug) {
if (isSafari || isOldAndroid || isChromeWithRangeBug || isWeChat) {
PDFJS.disableRange = true;
PDFJS.disableStream = true;
}
Expand Down

0 comments on commit 9ad57d4

Please sign in to comment.