Skip to content

Commit

Permalink
check if used from mobile device by screen width and not height (less…
Browse files Browse the repository at this point in the history
… than 500px)
  • Loading branch information
idoco committed Apr 4, 2017
1 parent 48e7c63 commit 84844f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/widget-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function injectChat() {
render(
<Widget intergramId={window.intergramId}
host={host}
isMobile={window.screen.height < 800}
isMobile={window.screen.width < 500}
iFrameSrc={iFrameSrc}
conf={conf}
/>,
Expand Down

0 comments on commit 84844f5

Please sign in to comment.