Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Commit

Permalink
Use the Solid client for fetching.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVerborgh committed Apr 24, 2018
1 parent b9dbc63 commit 5e669c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h2>Send a Yo</h2>
// Sets the data source based on the field value
let source;
function updateSource() {
source = new YoSource(elements.source.value);
source = new YoSource(elements.source.value, SolidAuthClient.fetch);
displayRandomYo();
}
updateSource();
Expand Down
2 changes: 1 addition & 1 deletion scripts/YoSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const literals = {
class YoSource {
// Creates a new Yo source with the given fetcher
constructor (source, fetch = (...args) => window.fetch(...args)) {
this._source = source;
this._source = new URL(source, window.location).toString();
this._fetch = fetch;
}

Expand Down

0 comments on commit 5e669c8

Please sign in to comment.