You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using this on another platform, the data might be already there from other sources (my situation). Rather than make another API call to url, I propose having another parameter, eg announcements, which would have the content as returned by the API, eg
One could set either announcements or url in the init() call. If announcements is set, just skip fetching content from URL and proceed with next step, probably parser.
This extents the usability of this library to many other cases, rather than being forced to load content from an URL.
When using this on another platform, the data might be already there from other sources (my situation). Rather than make another API call to
url
, I propose having another parameter, egannouncements
, which would have the content as returned by the API, egOne could set either
announcements
orurl
in theinit()
call. Ifannouncements
is set, just skip fetching content from URL and proceed with next step, probably parser.This extents the usability of this library to many other cases, rather than being forced to load content from an URL.
Originally posted by @mariusa in #28 (comment)
The text was updated successfully, but these errors were encountered: