Drop $.ajax

This commit is contained in:
Mimi 2019-12-22 10:15:16 +08:00
parent 0d480a76f6
commit f1953d6d19
2 changed files with 4 additions and 6 deletions

View File

@ -118,7 +118,7 @@ https://github.com/akiroz/Live2D-Widget
## 更多 More
Live2D官方网站
Live2D 官方网站:
https://www.live2d.com/en/
https://live2d.github.io

View File

@ -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);