Skip to content

Commit

Permalink
Update population queries to use crossorigin getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Oct 11, 2016
1 parent d13b46c commit e15c6f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = function (options) {

var relationsQuery = {
type: query.not('HtmlAnchor'),
hrefType: ['relative', 'rootRelative']
crossorigin: false
};

if (options.recursive) {
Expand Down Expand Up @@ -240,8 +240,8 @@ module.exports = function (options) {
var hrefMap = {};

hrefMap = _.groupBy(assetGraph.findRelations({
hrefType: ['absolute', 'protocolRelative'],
href: /^(?:https?:\/\/)/
crossorigin: true,
href: /^(?:https?:)?\/\//
}, true), function (relation) {
var url = relation.href.replace(/#.*$/, '');

Expand Down

0 comments on commit e15c6f6

Please sign in to comment.