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

Commit

Permalink
populate .capabilities also if no .ld property found
Browse files Browse the repository at this point in the history
  • Loading branch information
letmaik committed Mar 23, 2016
1 parent 776333f commit 86937e2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,9 @@ export class API {
/**
* @param ld A framed and compacted JSON-LD document from which Hydra data can be read.
*/
constructor (ld) {
constructor (ld = {}) {
this.supportedUrlProps = new Map()

if (!ld) return
console.log(ld)

if (ld.view && ld.view.type === PartialCollectionView) {
this.isPaged = true
this.paging = ld.view
Expand Down

0 comments on commit 86937e2

Please sign in to comment.