settingsStore.player.server,
async (server) => {
+ loadedServerFB = false
try {
if (server === "DU") {
if (typeCurrentConfig !== "DU")
- // eslint-disable-next-line promise/catch-or-return
PlayerLink(currentMetaChap).then((conf) => {
// eslint-disable-next-line promise/always-return
if (settingsStore.player.server === "DU") {
@@ -1238,25 +1240,33 @@ watch(
typeCurrentConfig = "DU"
}
})
+ .catch(err => {
+ error.value =err
+ })
}
if (server === "FB") {
// PlayerFB は常に PlayerLink よりも遅いため、DU を使用して高速プリロード戦術を使用する必要があります。
if (typeCurrentConfig !== "DU")
- // eslint-disable-next-line promise/catch-or-return
PlayerLink(currentMetaChap).then((conf) => {
// eslint-disable-next-line promise/always-return
- if (settingsStore.player.server === "DU") {
+ if (!loadedServerFB && settingsStore.player.server === "DU") {
configPlayer.value = conf
typeCurrentConfig = "DU"
}
})
- // eslint-disable-next-line promise/catch-or-return
+ .catch(err => {
+ error.value =err
+ })
PlayerFB(currentMetaChap.id).then((conf) => {
// eslint-disable-next-line promise/always-return
if (settingsStore.player.server === "FB") {
configPlayer.value = conf
typeCurrentConfig = "FB"
}
+ loadedServerFB = true
+ })
+ .catch(err => {
+ error.value =err
})
}
} catch (err) {