mirror of
https://github.com/EndPwnArchive/endpwn3.git
synced 2024-08-15 00:23:30 +00:00
pls work
This commit is contained in:
parent
967850d6a9
commit
881ae23ca8
1 changed files with 20 additions and 10 deletions
14
shared.js
14
shared.js
|
@ -35,7 +35,9 @@
|
||||||
fetch('https://endpwn.github.io/changelog.md?_=' + Date.now()).then(r => r.text()).then(l => {
|
fetch('https://endpwn.github.io/changelog.md?_=' + Date.now()).then(r => r.text()).then(l => {
|
||||||
|
|
||||||
// we're racing discord's initialization procedures; try and hit a timing sweetspot
|
// we're racing discord's initialization procedures; try and hit a timing sweetspot
|
||||||
setTimeout(() => {
|
setTimeout(function () {
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
// get the changelog object
|
// get the changelog object
|
||||||
var log = $api.util.findFuncExports('changeLog');
|
var log = $api.util.findFuncExports('changeLog');
|
||||||
|
@ -48,7 +50,15 @@
|
||||||
// prepend to the changelog body
|
// prepend to the changelog body
|
||||||
log.changeLog.body = data[1] + '\n\n' + log.changeLog.body;
|
log.changeLog.body = data[1] + '\n\n' + log.changeLog.body;
|
||||||
|
|
||||||
}, 200);
|
}
|
||||||
|
catch (e) {
|
||||||
|
|
||||||
|
// it failed, try again in 10 ms
|
||||||
|
setTimeout(callee, 10);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}, 100);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue