Skip to content

Commit

Permalink
Merge pull request #1 from jmcerrejon/main
Browse files Browse the repository at this point in the history
Change property src (not valid) for image.
  • Loading branch information
AbdullahFaqeir committed Apr 28, 2021
2 parents 2a593fa + 99b957f commit fb76313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function init() {
if (image.type === 'base64') {
imageView.image = Ti.Utils.base64decode(image.image);
} else if (image.type === 'image') {
imageView.src = image.image;
imageView.image = image.image;
} else {
throw new Error('Invalid image type ' + image.type + '.');
}
Expand Down

0 comments on commit fb76313

Please sign in to comment.