debug AutomaticDisposeFaye
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Mon Feb 18 2019 10:49:44 GMT+0100 (CET)*/
|
/*Generated on:Mon Feb 18 2019 10:59:13 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
+18
-13
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Mon Feb 18 2019 10:49:44 GMT+0100 (CET)*/
|
/*Generated on:Mon Feb 18 2019 10:59:13 GMT+0100 (CET)*/
|
||||||
/*
|
/*
|
||||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
@@ -4475,6 +4475,11 @@
|
|||||||
//# sourceMappingURL=dexie.js.map
|
//# sourceMappingURL=dexie.js.map
|
||||||
|
|
||||||
|
|
||||||
|
// Helper Scripts
|
||||||
|
String.prototype.replaceAll = function (find, replace) {
|
||||||
|
return this.replace(new RegExp(find.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1"), "g"), replace);
|
||||||
|
}
|
||||||
|
|
||||||
class AutomaticDisposeFaye {
|
class AutomaticDisposeFaye {
|
||||||
constructor(myFaye) {
|
constructor(myFaye) {
|
||||||
let self = this;
|
let self = this;
|
||||||
@@ -4504,18 +4509,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
replaceWithPrefix(data) {
|
replaceWithPrefix(data) {
|
||||||
return data.replace('allianceChat', 'this.allianceChat')
|
return data.replaceAll('allianceChat', 'this.allianceChat')
|
||||||
.replace('mission_participation_add', 'this.mission_participation_add')
|
.replaceAll('mission_participation_add', 'this.mission_participation_add')
|
||||||
.replace('missionDelete', 'this.missionDelete')
|
.replaceAll('missionDelete', 'this.missionDelete')
|
||||||
.replace('missionInvolved', 'this.missionInvolved')
|
.replaceAll('missionInvolved', 'this.missionInvolved')
|
||||||
.replace('missionMarkerAdd', 'this.missionMarkerAdd')
|
.replaceAll('missionMarkerAdd', 'this.missionMarkerAdd')
|
||||||
.replace('patientDelete', 'this.patientDelete')
|
.replaceAll('patientDelete', 'this.patientDelete')
|
||||||
.replace('patientMarkerAdd', 'this.patientMarkerAdd')
|
.replaceAll('patientMarkerAdd', 'this.patientMarkerAdd')
|
||||||
.replace('prisonerMarkerAdd', 'this.prisonerMarkerAdd')
|
.replaceAll('prisonerMarkerAdd', 'this.prisonerMarkerAdd')
|
||||||
.replace('radioMessage', 'this.radioMessage')
|
.replaceAll('radioMessage', 'this.radioMessage')
|
||||||
.replace('vehicleDrive', 'this.vehicleDrive')
|
.replaceAll('vehicleDrive', 'this.vehicleDrive')
|
||||||
.replace('vehicleMarkerAdd', 'this.vehicleMarkerAdd')
|
.replaceAll('vehicleMarkerAdd', 'this.vehicleMarkerAdd')
|
||||||
.replace('user_id', 'window.user_id')
|
.replaceAll('user_id', 'window.user_id')
|
||||||
}
|
}
|
||||||
|
|
||||||
allianceChat(data) {
|
allianceChat(data) {
|
||||||
|
|||||||
+17
-12
@@ -1,5 +1,10 @@
|
|||||||
//=require ../node_modules/dexie/dist/dexie.js
|
//=require ../node_modules/dexie/dist/dexie.js
|
||||||
|
|
||||||
|
// Helper Scripts
|
||||||
|
String.prototype.replaceAll = function (find, replace) {
|
||||||
|
return this.replace(new RegExp(find.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1"), "g"), replace);
|
||||||
|
}
|
||||||
|
|
||||||
class AutomaticDisposeFaye {
|
class AutomaticDisposeFaye {
|
||||||
constructor(myFaye) {
|
constructor(myFaye) {
|
||||||
let self = this;
|
let self = this;
|
||||||
@@ -29,18 +34,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
replaceWithPrefix(data) {
|
replaceWithPrefix(data) {
|
||||||
return data.replace('allianceChat', 'this.allianceChat')
|
return data.replaceAll('allianceChat', 'this.allianceChat')
|
||||||
.replace('mission_participation_add', 'this.mission_participation_add')
|
.replaceAll('mission_participation_add', 'this.mission_participation_add')
|
||||||
.replace('missionDelete', 'this.missionDelete')
|
.replaceAll('missionDelete', 'this.missionDelete')
|
||||||
.replace('missionInvolved', 'this.missionInvolved')
|
.replaceAll('missionInvolved', 'this.missionInvolved')
|
||||||
.replace('missionMarkerAdd', 'this.missionMarkerAdd')
|
.replaceAll('missionMarkerAdd', 'this.missionMarkerAdd')
|
||||||
.replace('patientDelete', 'this.patientDelete')
|
.replaceAll('patientDelete', 'this.patientDelete')
|
||||||
.replace('patientMarkerAdd', 'this.patientMarkerAdd')
|
.replaceAll('patientMarkerAdd', 'this.patientMarkerAdd')
|
||||||
.replace('prisonerMarkerAdd', 'this.prisonerMarkerAdd')
|
.replaceAll('prisonerMarkerAdd', 'this.prisonerMarkerAdd')
|
||||||
.replace('radioMessage', 'this.radioMessage')
|
.replaceAll('radioMessage', 'this.radioMessage')
|
||||||
.replace('vehicleDrive', 'this.vehicleDrive')
|
.replaceAll('vehicleDrive', 'this.vehicleDrive')
|
||||||
.replace('vehicleMarkerAdd', 'this.vehicleMarkerAdd')
|
.replaceAll('vehicleMarkerAdd', 'this.vehicleMarkerAdd')
|
||||||
.replace('user_id', 'window.user_id')
|
.replaceAll('user_id', 'window.user_id')
|
||||||
}
|
}
|
||||||
|
|
||||||
allianceChat(data) {
|
allianceChat(data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user