close main demonstration before full open reporter window
This commit is contained in:
parent
4e29c768ee
commit
1a61bdcf06
|
@ -178,6 +178,10 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
window.onbeforeunload = function() {
|
||||||
|
window.postMessage("{ \"reporter_command\" : \"end\" }", "*");
|
||||||
|
};
|
||||||
|
|
||||||
var userAgent = navigator.userAgent.toLowerCase(),
|
var userAgent = navigator.userAgent.toLowerCase(),
|
||||||
check = function(regex){ return regex.test(userAgent); },
|
check = function(regex){ return regex.test(userAgent); },
|
||||||
stopLoading = false;
|
stopLoading = false;
|
||||||
|
|
Loading…
Reference in a new issue