plugin-live2d icon indicating copy to clipboard operation
plugin-live2d copied to clipboard

bug: 每次打开网站控制台都出现undefined 404错误

Open mjsoftking opened this issue 1 year ago • 5 comments

错误如图

image

Failed to load resource: the server responded with a status of 404 ()

检查发现好像是这里检测到 undefined 了但是没有结束,代码继续执行导致的 image

mjsoftking avatar Mar 21 '24 04:03 mjsoftking

这是预期行为。因为 live2d 会去读取主题下的 tips 文件,当没有获取到时会抛出异常。

LIlGG avatar Mar 21 '24 04:03 LIlGG

实际运行好像不是,填了自定义的tips地址,也会传入一个undefined进来 那个if判断加个return就行了吧

mjsoftking avatar Mar 21 '24 04:03 mjsoftking

https://demo.sw0.top/live2d/Dream2.0/live2d-tips.json

我填写的这个外置的一个静态地址

mjsoftking avatar Mar 21 '24 04:03 mjsoftking

这个确实是个 bug,因为 tips 无法获取到值。

/kind bug

LIlGG avatar Mar 21 '24 10:03 LIlGG

感谢反馈~

LIlGG avatar Mar 21 '24 10:03 LIlGG