Skip to content

Commit

Permalink
Merge pull request #5 from lanternpay/link-method-support
Browse files Browse the repository at this point in the history
Add 'method' as an expected link attribute
  • Loading branch information
naholyr authored Dec 6, 2017
2 parents e8d31e3 + 4fe57ce commit 16c1e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hal.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

// If value is a hashmap, just copy properties
if (!value.href) throw new Error('Required <link> attribute "href"');
var expectedAttributes = ['rel', 'href', 'name', 'hreflang', 'title', 'templated','icon','align'];
var expectedAttributes = ['rel', 'href', 'name', 'hreflang', 'title', 'templated', 'icon', 'align', 'method'];
for (var attr in value) {
if (value.hasOwnProperty(attr)) {
if (!~expectedAttributes.indexOf(attr)) {
Expand Down

0 comments on commit 16c1e6d

Please sign in to comment.