Skip to content

Commit

Permalink
Change Electron detection to be user agent based only
Browse files Browse the repository at this point in the history
  • Loading branch information
Calyhre committed Nov 8, 2019
1 parent 8a6105d commit 4002057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#d89000">
<script type="text/javascript">
var mxIsElectron = (window && window.process && window.process.type) || (navigator.userAgent.toLowerCase().indexOf(' electron/') > -1);
var mxIsElectron5 = mxIsElectron && parseInt(process.versions.electron) >= 5;
var mxIsElectron = window && window.process && window.process.type;
var mxIsElectron5 = mxIsElectron && parseInt(window.process.versions.electron) >= 5;
var hostName = window.location.hostname;
// Supported domains are *.draw.io that draw.io host, or the packaged version in Quip
var supportedDomain = (hostName.substring(hostName.length - 8, hostName.length) === '.draw.io') ||
Expand Down

0 comments on commit 4002057

Please sign in to comment.