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