close main demonstration before full open reporter window

This commit is contained in:
Oleg Korshul 2017-07-28 15:11:06 +03:00
parent 4e29c768ee
commit 1a61bdcf06

View file

@ -178,6 +178,10 @@
</style>
<script>
window.onbeforeunload = function() {
window.postMessage("{ \"reporter_command\" : \"end\" }", "*");
};
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },
stopLoading = false;