mirror of
https://github.com/SillyTavern/Extension-Live2d.git
synced 2026-10-15 13:32:13 +00:00
[PR #4] [MERGED] Update index.min.js - loading of .physics3.json #11
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/Extension-Live2d#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SillyTavern/Extension-Live2d/pull/4
Author: @Baromeus
Created: 12/25/2023
Status: ✅ Merged
Merged: 12/25/2023
Merged by: @Tony-sama
Base:
main← Head:physic-load📝 Commits (1)
27a4256Update index.min.js📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
lib/index.min.js(+1 -1)📄 Description
changed loading routine for ".physics3.json"
(for now it tries to load a physics3.json instead and prompts a alternative warning if file is not found:
Originally I wanted to make it possible to load the dotted file and have this as fallback but my knowledge if JS is not good enough to provide a bulletproof method to check if a file exists (to my defense, minified code is awful to work with).
But with this users have a warning with a possible fix in it. Before they only got a 404 error with no explanation why and what they could do.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.