32 lines
1.4 KiB
HTML
32 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" style="height: 100%;">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<meta name="theme-color" content="#000000">
|
|
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
|
|
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
|
|
|
|
<title>Adblock Radio</title>
|
|
</head>
|
|
<body style="height: 100%;">
|
|
<noscript>
|
|
You need to enable JavaScript to run this app.
|
|
</noscript>
|
|
<script type="text/javascript">
|
|
const isElectron = navigator.userAgent.toLowerCase().indexOf(' electron/') > -1; // in a Electron environment (https://github.com/electron/electron/issues/2288)
|
|
const isCordovaApp = document.URL.indexOf('http://') === -1 && document.URL.indexOf('https://') === -1 && !isElectron;
|
|
|
|
if (isElectron) {
|
|
console.log("detected Electron environment");
|
|
//require("../../index.js"); // start main process for stream analysis
|
|
//require("adblockradio-buffer-server");
|
|
navigator.abrserver = require("electron").remote.require('./handlers/config.js');
|
|
navigator.abrlisten = require("electron").remote.require('./api/listen-electron.js');
|
|
navigator.abrflag = require("electron").remote.require('./handlers/flag.js');
|
|
}
|
|
</script>
|
|
<div id="root"></div>
|
|
</body>
|
|
</html>
|