Skip to content

Commit

Permalink
browserify axe-core as a string, not a Buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Apr 20, 2017
1 parent 618d5f0 commit e0f584d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lighthouse-core/gather/gatherers/accessibility.js
Expand Up @@ -20,9 +20,7 @@

const Gatherer = require('./gatherer');
const fs = require('fs');
const axe = fs.readFileSync(
require.resolve('axe-core/axe.min.js')
);
const axe = fs.readFileSync(require.resolve('axe-core/axe.min.js'), 'utf8');

// This is run in the page, not Lighthouse itself.
// axe.run returns a promise which fulfills with a results object
Expand Down

0 comments on commit e0f584d

Please sign in to comment.