Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

关于初次进入页面的Uncaught TypeError #26

Closed
newdee opened this issue Oct 17, 2017 · 5 comments
Closed

关于初次进入页面的Uncaught TypeError #26

newdee opened this issue Oct 17, 2017 · 5 comments
Labels
BUG jsClient(Deprected) Go to https://github.com/xiazeyu/live2d-widget.js

Comments

@newdee
Copy link

newdee commented Oct 17, 2017

有个小问题,每次浏览器第一次打开页面时,会有报错:
image
之后Reload页面,错误就消失。

@newdee
Copy link
Author

newdee commented Oct 27, 2017

问题以及解决了,感谢@chanshiyucx提供帮助。具体方法是修改dist文件夹下的bundle.js,在第一个getDrawDataIndex(t)的前面一个function里加一个判断,

if(this.live2DModel === null)return!1;

顺便请求在源文件中修改,以及提供模型左右放置的设置。

@xiazeyu
Copy link
Collaborator

xiazeyu commented Oct 27, 2017

@xiazeyu
Copy link
Collaborator

xiazeyu commented Oct 27, 2017

左右模型的设置已经正在修改了

@newdee
Copy link
Author

newdee commented Oct 27, 2017

@xiazeyu 对的,是这样修改。左右模型我是自己在本地修改的,等这里改完了再更新吧

@xiazeyu xiazeyu mentioned this issue Oct 28, 2017
EYHN added a commit that referenced this issue Nov 3, 2017
Fixed:

仅生成选择的模型(#14) 模型列表移除(#14)
增加模型左右设置(#10)(#19)(#21)(#23) 增加移动端模型更多功能(#12)
New README
Deleted package-lock.json to solve dependencies problems
Updates dependencies
Tried to fix (#26) Uncaught TypeError.

Break change:
change bottomOffset to verticalOffset   (94560f7)
@xiazeyu
Copy link
Collaborator

xiazeyu commented Nov 3, 2017

@newdee This problem have been fixed at my latest pr, so you can close this issue now.

@EYHN EYHN closed this as completed in 8a30beb Nov 3, 2017
xiazeyu added a commit that referenced this issue Nov 4, 2017
@xiazeyu xiazeyu added the BUG label Nov 4, 2017
@xiazeyu xiazeyu added the jsClient(Deprected) Go to https://github.com/xiazeyu/live2d-widget.js label Nov 13, 2017
xiazeyu added a commit that referenced this issue Dec 1, 2017
xiazeyu added a commit that referenced this issue Dec 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
BUG jsClient(Deprected) Go to https://github.com/xiazeyu/live2d-widget.js
Projects
None yet
Development

No branches or pull requests

2 participants