Skip to content

Commit

Permalink
fix: Update axe.source to work with Firefox webdriver
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers authored and marcysutton committed Jun 14, 2017
1 parent 948c6a2 commit cc1428f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if (typeof define === 'function' && define.amd) {
});
}
if (typeof module === 'object' && module.exports && typeof axeFunction.toString === 'function') {
axe.source = '(' + axeFunction.toString() + ')(this, this.document);';
axe.source = '(' + axeFunction.toString() + ')(typeof window === "object" ? window : this);';
module.exports = axe;
}
if (typeof window.getComputedStyle === 'function') {
Expand Down

0 comments on commit cc1428f

Please sign in to comment.