Skip to content

Commit

Permalink
fixup! build a separate file that defines globals in the browser
Browse files Browse the repository at this point in the history
  • Loading branch information
philschatz committed Oct 3, 2016
1 parent ddaa402 commit 3fd7b93
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/accessibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const Eval = require('./eval')

exports.audit = () => {
return Eval.execute(function () {
const {axs} = window.__devtron // defined in browserGlobals.js
const {axs} = window.__devtron // defined in browser-globals.js
const config = new axs.AuditConfiguration({showUnsupportedRulesWarning: false})
const results = axs.Audit.run(config)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"content_scripts": [
{
"matches": ["*"],
"js": ["out/browserGlobals.js"]
"js": ["out/browser-globals.js"]
}
]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "Electron DevTools Extension",
"main": "./api.js",
"scripts": {
"prepublish": "browserify lib/*.js -o out/index.js --ignore-missing --entry lib/index.js && browserify lib/browserGlobals.js -o out/browserGlobals.js",
"start": "watchify lib/*.js -o out/index.js --ignore-missing --entry lib/index.js --verbose",
"prepublish": "browserify lib/*.js -o out/index.js --ignore-missing --entry lib/index.js && browserify lib/browser-globals.js -o out/browser-globals.js",
"start": "browserify lib/browser-globals.js -o out/browser-globals.js && watchify lib/*.js -o out/index.js --ignore-missing --entry lib/index.js --verbose",
"test": "mocha test/unit/*-test.js test/integration/*-test.js && standard"
},
"repository": {
Expand Down

0 comments on commit 3fd7b93

Please sign in to comment.