Skip to content

Commit

Permalink
switch another repo to fix the cdn temp problem
Browse files Browse the repository at this point in the history
  • Loading branch information
nova1751 committed Aug 9, 2023
1 parent 8857016 commit 5ecdc6f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions npm/random/autoload.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// const live2d_path =
// "https://fastly.jsdelivr.net/gh/nova1751/live2d-widget@latest/";

const live2d_path = "https://npm.elemecdn.com/noa-live2dapi@latest/";
const live2d_path = "https://npm.elemecdn.com/live2dapi-noa@latest/";

// 封装异步加载资源的方法
function loadExternalResource(url, type) {
Expand Down Expand Up @@ -36,7 +36,7 @@ if (screen.width >= 768) {
waifuPath: live2d_path + "waifu-tips.json",

// apiPath: "https://live2d.fghrsh.net/api/",
cdnPath: "https://npm.elemecdn.com/noa-live2dapi@latest/",
cdnPath: live2d_path,

tools: [
"hitokoto",
Expand Down
4 changes: 2 additions & 2 deletions npm/sequential/autoload.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// const live2d_path =
// "https://fastly.jsdelivr.net/gh/nova1751/live2d-widget@latest/";

const live2d_path = "https://npm.elemecdn.com/noa-live2dapi@latest/";
const live2d_path = "https://npm.elemecdn.com/live2dapi-noa@latest/";

// 封装异步加载资源的方法
function loadExternalResource(url, type) {
Expand Down Expand Up @@ -36,7 +36,7 @@ if (screen.width >= 768) {
waifuPath: live2d_path + "waifu-tips.json",

// apiPath: "https://live2d.fghrsh.net/api/",
cdnPath: "https://npm.elemecdn.com/noa-live2dapi@latest/",
cdnPath: live2d_path,

tools: [
"hitokoto",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "noa-live2dapi",
"version": "1.0.12",
"name": "live2dapi-noa",
"version": "1.0.0",
"description": "nova1751自建的live-2d api",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
<!-- 看板娘位置靠左 -->
<link
rel="stylesheet"
href="https://npm.elemecdn.com/noa-live2dapi@latest/css/left.css"
href="https://npm.elemecdn.com/live2dapi-noa@latest/css/left.css"
/>
<!-- 看板娘位置靠右 -->
<link
rel="stylesheet"
href="https://npm.elemecdn.com/noa-live2dapi@latest/css/right.css"
href="https://npm.elemecdn.com/live2dapi-noa@latest/css/right.css"
/>
```

Expand Down

0 comments on commit 5ecdc6f

Please sign in to comment.