This commit is contained in:
2019-01-11 04:18:11 +01:00
parent cfb0fbf768
commit bca23d5c80
3 changed files with 10 additions and 10 deletions

View File

@@ -668,7 +668,7 @@ class AutomaticDispose {
var JailHref = this.Jails[0].href
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
tellParent(`console.log('wunsch:1000:done:${window.name}:${MissionID}');window.AutomaticDisposeCall.FreeIframe('${window.name}');`);
tellParent(`console.log('sprechwunsch:${window.name}:${MissionID}');setTimeout(function(){ window.AutomaticDisposeCall.FreeIframe('${window.name}');},250);`);
document.location.href = document.location.origin + JailHref;
});
}
@@ -1067,9 +1067,9 @@ class AutomaticDispose {
const self = this;
const runnerID = self.ADisSettings.runner.indexOf(Runner)
const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
if (runnerID === -1 && Runner == 'adis-sprechwunsch-police') {
$('#' + runnerIframe).attr("src", '');
$('#' + runnerIframe).attr("mission_id", 'empty');
if (Runner == 'adis-sprechwunsch-police') {
$('#' + Runner).attr("src", '');
$('#' + Runner).attr("mission_id", 'empty');
} else {
$('#' + runnerIframe).attr("src", '');
$('#' + runnerIframe).attr("mission_id", 'empty');