Fix jQuery and chest clicking?
This commit is contained in:
parent
61bff36c5c
commit
be75abf7b3
@ -1,18 +1,14 @@
|
||||
(async function() {
|
||||
// Fetch jQuery
|
||||
let jquery = await fetch("https://code.jquery.com/jquery-3.6.0.min.js").then(x => x.text()).then(y => eval(y))
|
||||
let meaningOfLife = false;
|
||||
async function waitForJQuery(){
|
||||
while (true) {
|
||||
if ($ != null){
|
||||
// Fetch jQuery
|
||||
await fetch("https://code.jquery.com/jquery-3.6.0.min.js").then(x => x.text()).then(y => eval(y))
|
||||
// Wait for jQuery to be loaded.
|
||||
async function execjQuery() {
|
||||
while (!window.jQuery) {
|
||||
|
||||
}
|
||||
$("window").off("mouseup")
|
||||
return
|
||||
}
|
||||
await null; // prevents app from hanging
|
||||
}
|
||||
}
|
||||
waitForJQuery();
|
||||
{
|
||||
}
|
||||
execjQuery()
|
||||
{
|
||||
// From https://stackoverflow.com/a/53914092
|
||||
class ClassWatcher {
|
||||
|
||||
@ -90,6 +86,6 @@
|
||||
|
||||
// Watch for SweetAlert 2
|
||||
new ClassWatcher(document.body, 'swal2-shown', closeSwal2, spin);
|
||||
// ReactModal__Body--open
|
||||
spin()
|
||||
}
|
||||
})();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user