mirror of
https://github.com/caojiezi2003/live2d-widget.git
synced 2024-11-22 15:19:44 +00:00
Drop $.ajax
This commit is contained in:
parent
0d480a76f6
commit
f1953d6d19
@ -28,11 +28,9 @@ function loadWidget(waifuPath, apiPath) {
|
||||
if (!window.ASTEROIDSPLAYERS) window.ASTEROIDSPLAYERS = [];
|
||||
window.ASTEROIDSPLAYERS.push(new Asteroids());
|
||||
} else {
|
||||
$.ajax({
|
||||
url: "https://cdn.jsdelivr.net/gh/GalaxyMimi/CDN/asteroids.js",
|
||||
dataType: "script",
|
||||
cache: true
|
||||
});
|
||||
var script = document.createElement('script');
|
||||
script.src = "https://cdn.jsdelivr.net/gh/GalaxyMimi/CDN/asteroids.js";
|
||||
document.head.appendChild(script);
|
||||
}
|
||||
});
|
||||
document.querySelector("#waifu-tool .fa-user-circle").addEventListener("click", loadOtherModel);
|
||||
|
Loading…
Reference in New Issue
Block a user