Merge pull request #645 from Calyhre/fix/electron-detection
Change Electron detection to be user agent based only
This commit is contained in:
commit
e71a6a71a9
1 changed files with 2 additions and 2 deletions
|
@ -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') ||
|
||||
|
|
Loading…
Reference in a new issue