Skip to content

Commit

Permalink
Merge pull request #1079 from dasgarner/release30
Browse files Browse the repository at this point in the history
Widget: Reverse new marquee for Android.
  • Loading branch information
dasgarner authored Mar 10, 2021
2 parents 6046ff8 + 2635504 commit 83e15a3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/xibo-text-render.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,14 @@ jQuery.fn.extend({
if (marquee) {
// Which marquee to use?
var nua = navigator.userAgent;
/* The intention was to allow Chrome based android to benefit from the new marquee
unfortunately though, it doesn't appear to work.
Maybe this is due to Chrome verison? Android tends to have quite an old version.
var is_android = ((nua.indexOf('Mozilla/5.0') > -1
&& nua.indexOf('Android ') > -1
&& nua.indexOf('Android') > -1
&& nua.indexOf('AppleWebKit') > -1)
&& !(nua.indexOf('Chrome') > -1));
&& !(nua.indexOf('Chrome') > -1));*/
var is_android = nua.indexOf('Android') > -1;

// Create a DIV to scroll, and put this inside the body
var scroller = $("<div/>")
Expand Down

0 comments on commit 83e15a3

Please sign in to comment.