Add script to fix fork issues

pull/1/head
yflory 5 years ago
parent 606dea38aa
commit ee291bc0c9

@ -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
// Settings only
common.resetDrive = function (cb) {

Loading…
Cancel
Save