jails
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Fri Jan 11 2019 04:08:37 GMT+0100 (CET)*/
|
/*Generated on:Fri Jan 11 2019 04:15:03 GMT+0100 (CET)*/
|
||||||
var AutomaticDispose_Branch = "master";
|
var AutomaticDispose_Branch = "master";
|
||||||
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
||||||
var da_lss_adis_time = new Date().getTime();
|
var da_lss_adis_time = new Date().getTime();
|
||||||
|
|||||||
Vendored
+10
-10
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Fri Jan 11 2019 04:08:37 GMT+0100 (CET)*/
|
/*Generated on:Fri Jan 11 2019 04:15:03 GMT+0100 (CET)*/
|
||||||
/*
|
/*
|
||||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
@@ -17787,13 +17787,8 @@ class AutomaticDispose {
|
|||||||
var self = this;
|
var self = this;
|
||||||
var JailHref = this.Jails[0].href
|
var JailHref = this.Jails[0].href
|
||||||
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
||||||
const runnerID = self.ADisSettings.runner_iframesName.indexOf(window.name);
|
|
||||||
self.MyRunner = self.ADisSettings.runner[runnerID];
|
|
||||||
self.MyRunnerSettings = self.ADisSettings.runner_settings[runnerID];
|
|
||||||
self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
||||||
$("#adis-sprechwunsch-police-frame").attr("src", "");
|
tellParent(`console.log('wunsch:1000:done:${window.name}:${MissionID}');window.AutomaticDisposeCall.FreeIframe('${window.name}');`);
|
||||||
$("#adis-sprechwunsch-police-frame").attr("mission_id", "empty");
|
|
||||||
tellParent(`console.log('wunsch:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
|
||||||
document.location.href = document.location.origin + JailHref;
|
document.location.href = document.location.origin + JailHref;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -18426,9 +18421,14 @@ class AutomaticDispose {
|
|||||||
const self = this;
|
const self = this;
|
||||||
const runnerID = self.ADisSettings.runner.indexOf(Runner)
|
const runnerID = self.ADisSettings.runner.indexOf(Runner)
|
||||||
const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
|
const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
|
||||||
$('#' + runnerIframe).attr("src", '');
|
if (runnerID === -1 && Runner == 'adis-sprechwunsch-police') {
|
||||||
$('#' + runnerIframe).attr("mission_id", 'empty');
|
$('#' + runnerIframe).attr("src", '');
|
||||||
setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
|
$('#' + runnerIframe).attr("mission_id", 'empty');
|
||||||
|
} else {
|
||||||
|
$('#' + runnerIframe).attr("src", '');
|
||||||
|
$('#' + runnerIframe).attr("mission_id", 'empty');
|
||||||
|
setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateMissionsToDone(MissionID) {
|
UpdateMissionsToDone(MissionID) {
|
||||||
|
|||||||
+9
-9
@@ -667,13 +667,8 @@ class AutomaticDispose {
|
|||||||
var self = this;
|
var self = this;
|
||||||
var JailHref = this.Jails[0].href
|
var JailHref = this.Jails[0].href
|
||||||
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
||||||
const runnerID = self.ADisSettings.runner_iframesName.indexOf(window.name);
|
|
||||||
self.MyRunner = self.ADisSettings.runner[runnerID];
|
|
||||||
self.MyRunnerSettings = self.ADisSettings.runner_settings[runnerID];
|
|
||||||
self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
||||||
$("#adis-sprechwunsch-police-frame").attr("src", "");
|
tellParent(`console.log('wunsch:1000:done:${window.name}:${MissionID}');window.AutomaticDisposeCall.FreeIframe('${window.name}');`);
|
||||||
$("#adis-sprechwunsch-police-frame").attr("mission_id", "empty");
|
|
||||||
tellParent(`console.log('wunsch:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
|
||||||
document.location.href = document.location.origin + JailHref;
|
document.location.href = document.location.origin + JailHref;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -1072,9 +1067,14 @@ class AutomaticDispose {
|
|||||||
const self = this;
|
const self = this;
|
||||||
const runnerID = self.ADisSettings.runner.indexOf(Runner)
|
const runnerID = self.ADisSettings.runner.indexOf(Runner)
|
||||||
const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
|
const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
|
||||||
$('#' + runnerIframe).attr("src", '');
|
if (runnerID === -1 && Runner == 'adis-sprechwunsch-police') {
|
||||||
$('#' + runnerIframe).attr("mission_id", 'empty');
|
$('#' + runnerIframe).attr("src", '');
|
||||||
setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
|
$('#' + runnerIframe).attr("mission_id", 'empty');
|
||||||
|
} else {
|
||||||
|
$('#' + runnerIframe).attr("src", '');
|
||||||
|
$('#' + runnerIframe).attr("mission_id", 'empty');
|
||||||
|
setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateMissionsToDone(MissionID) {
|
UpdateMissionsToDone(MissionID) {
|
||||||
|
|||||||
Reference in New Issue
Block a user