Spaces:
Running
Running
Update p1/index.html
Browse files- p1/index.html +7 -11
p1/index.html
CHANGED
|
@@ -4024,20 +4024,20 @@ function collectModeFiles() {
|
|
| 4024 |
|
| 4025 |
// audio
|
| 4026 |
if (mode.audio) {
|
| 4027 |
-
files.push('/
|
| 4028 |
}
|
| 4029 |
|
| 4030 |
// mp4
|
| 4031 |
if (Array.isArray(mode.mp4)) {
|
| 4032 |
mode.mp4.forEach(v => {
|
| 4033 |
-
files.push('/
|
| 4034 |
});
|
| 4035 |
}
|
| 4036 |
|
| 4037 |
// vrma
|
| 4038 |
if (Array.isArray(mode.vrma)) {
|
| 4039 |
mode.vrma.forEach(v => {
|
| 4040 |
-
files.push('/
|
| 4041 |
});
|
| 4042 |
}
|
| 4043 |
});
|
|
@@ -4051,13 +4051,9 @@ function collectModeFiles() {
|
|
| 4051 |
// =====================================
|
| 4052 |
|
| 4053 |
const EXTRA_OFFLINE_FILES = [
|
| 4054 |
-
'/
|
| 4055 |
-
'/
|
| 4056 |
-
'/
|
| 4057 |
-
|
| 4058 |
-
// 必要なら追加
|
| 4059 |
-
// '/p/model.vrm',
|
| 4060 |
-
// '/p/icon.png',
|
| 4061 |
];
|
| 4062 |
|
| 4063 |
|
|
@@ -4157,7 +4153,7 @@ async function checkVersionUpdate() {
|
|
| 4157 |
try {
|
| 4158 |
|
| 4159 |
const res = await fetch(
|
| 4160 |
-
'/
|
| 4161 |
{
|
| 4162 |
cache: 'no-store'
|
| 4163 |
}
|
|
|
|
| 4024 |
|
| 4025 |
// audio
|
| 4026 |
if (mode.audio) {
|
| 4027 |
+
files.push('/p1/' + mode.audio);
|
| 4028 |
}
|
| 4029 |
|
| 4030 |
// mp4
|
| 4031 |
if (Array.isArray(mode.mp4)) {
|
| 4032 |
mode.mp4.forEach(v => {
|
| 4033 |
+
files.push('/p1/' + v);
|
| 4034 |
});
|
| 4035 |
}
|
| 4036 |
|
| 4037 |
// vrma
|
| 4038 |
if (Array.isArray(mode.vrma)) {
|
| 4039 |
mode.vrma.forEach(v => {
|
| 4040 |
+
files.push('/p1/' + v);
|
| 4041 |
});
|
| 4042 |
}
|
| 4043 |
});
|
|
|
|
| 4051 |
// =====================================
|
| 4052 |
|
| 4053 |
const EXTRA_OFFLINE_FILES = [
|
| 4054 |
+
'/p1/',
|
| 4055 |
+
'/p1/index.html',
|
| 4056 |
+
'/p1/version.txt',
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4057 |
];
|
| 4058 |
|
| 4059 |
|
|
|
|
| 4153 |
try {
|
| 4154 |
|
| 4155 |
const res = await fetch(
|
| 4156 |
+
'/p1/version.txt?t=' + Date.now(),
|
| 4157 |
{
|
| 4158 |
cache: 'no-store'
|
| 4159 |
}
|