Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

body_htmlがnullの場合エラーになる #137

Open
yagitoshiro opened this issue Aug 3, 2019 · 0 comments
Open

body_htmlがnullの場合エラーになる #137

yagitoshiro opened this issue Aug 3, 2019 · 0 comments

Comments

@yagitoshiro
Copy link

web/js/timeline-loader-smartphone.js

255行目 if (!json.data[i].body_html.match(/img.*src=/))body_htmlnull になるケースでエラーになります。

web/js/timeline-loader.api.js

同じく417行目 if (!json.data[i].body_html.match(/img.*src=/))body_htmlnull になるケースでエラーになります。

いずれも

if (!String(json.data[i].body_html).match(/img.*src=/)) のように文字列型にキャストして対処しました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant