Add script to fix fork issues

pull/1/head
yflory 5 years ago
parent 9b5c1347a4
commit 0567547250

@ -80,6 +80,40 @@ define([
}); });
}; };
common.getTeamsId = function () {
postMessage("GET", {
key: ['teams'],
}, function (obj) {
if (obj.error) { return; }
Object.keys(obj || {}).forEach(function (id) {
console.log(obj[id].metadata.name, ':', id);
});
});
};
common.fixFork = function (teamId) {
var i = 0;
var send = function () {
if (i >= 110) {
postMessage("SET", {
teamId: teamId,
key: ['fixFork'],
}, function () {});
return;
}
postMessage("SET", {
teamId: teamId,
key: ['fixFork'],
value: i
}, function () {
i++;
setTimeout(send, 500);
});
};
send();
};
// RESTRICTED // RESTRICTED
// Settings only // Settings only
common.resetDrive = function (cb) { common.resetDrive = function (cb) {

Loading…
Cancel
Save