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

Resolve gray content in image issue #163

Merged
merged 10 commits into from
Jun 29, 2018
Merged

Resolve gray content in image issue #163

merged 10 commits into from
Jun 29, 2018

Conversation

felixbroehl
Copy link
Contributor

For me its fixing #71. This could also fix #157 (Not tested).

* @param imageUrl
*/
private isImageUrlRelative(imageUrl: string) {
return !(/^https?:\/\//i.test(imageUrl) || /^file:\/\/\//i.test(imageUrl));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use a combined RegExp

return !/^(https?|file):\/\/\/?/i.test(imageUrl);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your advice. I changed it.

@eduardoRoth
Copy link
Member

Hi @ihadeed, do you have an estimated date to merge this pull?

@ihadeed ihadeed merged commit a15309f into zyra:master Jun 29, 2018
@ihadeed
Copy link
Member

ihadeed commented Jun 29, 2018

@eduardoRoth Merged and published! .. sorry for the delay.

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

Successfully merging this pull request may close these issues.

Same image won't load on first run
3 participants