|
|
@ -7,16 +7,40 @@ |
|
|
|
|
|
|
|
|
|
|
|
<title>Rambox</title> |
|
|
|
<title>Rambox</title> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type='text/javascript'> |
|
|
|
|
|
|
|
var xhr = new XMLHttpRequest(); |
|
|
|
|
|
|
|
var file = "http://rambox.pro/api/latestversion.json"; |
|
|
|
|
|
|
|
var randomNum = Math.round(Math.random() * 10000); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xhr.open('HEAD', file + "?rand=" + randomNum, true); |
|
|
|
|
|
|
|
xhr.send(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xhr.addEventListener("readystatechange", processRequest, false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function processRequest(e) { |
|
|
|
|
|
|
|
if (xhr.readyState == 4) { |
|
|
|
|
|
|
|
if (xhr.status >= 200 && xhr.status < 304) { |
|
|
|
|
|
|
|
console.info('Internet Connection', true); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
console.info('Internet Connection', false); |
|
|
|
|
|
|
|
alert('No Internet Connection. Please, check your internet connection and open Rambox again.'); |
|
|
|
|
|
|
|
require('electron').remote.app.quit(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<!-- The line below must be kept intact for Sencha Cmd to build your application --> |
|
|
|
<!-- The line below must be kept intact for Sencha Cmd to build your application --> |
|
|
|
<script id="microloader" type="text/javascript" src="bootstrap.js"></script> |
|
|
|
<script id="microloader" type="text/javascript" src="bootstrap.js"></script> |
|
|
|
|
|
|
|
|
|
|
|
<!--- Tooltip player --> |
|
|
|
<!--- Tooltip player --> |
|
|
|
<script type='text/javascript'> |
|
|
|
<script type='text/javascript'> |
|
|
|
(function(d, s){ |
|
|
|
(function(d, s){ |
|
|
|
var t = d.createElement(s), e = d.getElementsByTagName(s)[0]; |
|
|
|
var t = d.createElement(s), e = d.getElementsByTagName(s)[0]; |
|
|
|
t.type = "text/javascript"; e.parentNode.insertBefore(t, e); |
|
|
|
t.type = "text/javascript"; e.parentNode.insertBefore(t, e); |
|
|
|
t.async = "async"; |
|
|
|
t.async = "async"; |
|
|
|
t.src = "https://cdn.tooltip.io/static/player.js?apiKey=sEF8shc4KSuqtHMx0ztmTFdcrQO0cAVpszZ9Y8hLfQ2"; |
|
|
|
t.src = "https://cdn.tooltip.io/static/player.js?apiKey=sEF8shc4KSuqtHMx0ztmTFdcrQO0cAVpszZ9Y8hLfQ2"; |
|
|
|
})(document, "script"); |
|
|
|
})(document, "script"); |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<!--- Tooltip player --> |
|
|
|
<!--- Tooltip player --> |
|
|
|
</head> |
|
|
|
</head> |
|
|
|