Skip to content

Commit

Permalink
Merge pull request #12 from yusinto/master
Browse files Browse the repository at this point in the history
Added window check for server side rendering compatibility
  • Loading branch information
apucacao committed Aug 12, 2016
2 parents a2ce5f6 + 4252d99 commit 4734599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GoalTracker.js
@@ -1,5 +1,5 @@
var escapeStringRegexp = require('escape-string-regexp');
var Sizzle = require('sizzle');
var Sizzle = typeof window === 'undefined' ? function () {} : require('sizzle');

function doesUrlMatch(matcher, href, search, hash) {
var canonicalUrl = href.replace(search, '').replace(hash, '');
Expand Down

0 comments on commit 4734599

Please sign in to comment.