Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

passing URLs in correct way; this solves issue #12#13

Open
dmitri777 wants to merge 1 commit into
googlearchive:masterfrom
dmitri777:issue12fix
Open

passing URLs in correct way; this solves issue #12#13
dmitri777 wants to merge 1 commit into
googlearchive:masterfrom
dmitri777:issue12fix

Conversation

@dmitri777

Copy link
Copy Markdown

Issue #12 is actually not a bug in library code.

The error happens because usage sample code is wrong. URLs are passed as strings in sample code, but they must be in fact dictionaries with src attribute, as can be seen from line 14 of https://github.com/GoogleChrome/apps-resource-loader/blob/master/lib/RAL/Image.js


RAL.RemoteImage = function(options) { 
...
this.src = this.element.dataset.src || options.src; 

This ways, it works fine. I tested in on my own Chrome App which is not published yet. Images were retrieved from the net and appended to target container w/o issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant