question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Demo player doesn't work on Chrome OS

See original GitHub issue

I get a JS error caused by accessing platform[0] in Chrome OS cause ua.match doesnt’ check for cros. See


  function getBrowserInfo () {
    var ua = navigator.userAgent;

    // Check the mobile platform first.
    var platform = ua.match(/android|ipad|iphone/i);
    if (!platform)
      platform = ua.match(/linux|mac os x|win64/i);

    // Check Edge first. If fails, check the other major browsers.
    var client = ua.match(/(edge)\/(\d+)/i);
    if (!client)
      client = ua.match(/(chrome|safari|firefox|opera)\/(\d+)/i);

    return {
      brand: client[1],
      version: client[2],
      platform: platform[0]
    };
  }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
beaufortfrancoiscommented, Jul 27, 2016

Thanks!

0reactions
hochcommented, Jul 27, 2016

That is the different issue - #5. I am working on it at the moment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I put my chrome book into demo mode. i cant remove it please ...
After a quick search, it seems it's pretty easy to put your Chromebook into Demo mode. After a Powerwash(factory reset) you just press...
Read more >
How To Enable Demo Mode On Chromebooks - YouTube
How To Enable Demo Mode On Chromebooks. Watch later. Share. Copy link. Info. Shopping. Tap to unmute. If playback doesn't begin shortly, ...
Read more >
Demo player does not work (Win 10, Chrome) · Issue #6 ... - GitHub
I have the same problem It comes from platform = ua.match(); it fails to match on my system. I'll get more detail when...
Read more >
Videos Not Playing on Chrome: Fix It with 10 Methods
Videos are not playing or even loading on Google Chrome? Don't worry. This article will provide 10 methods you need to fix video...
Read more >
The most common Chromebook problems and how to fix them
From issues with updates to internet connectivity, troubleshooting common Chromebook problems doesn't have to ruin your day. Read on to discover easy fixes ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found