Skip to content

Commit

Permalink
cdp(connect): fix source-map-support (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
stoffeastrom committed Jan 25, 2018
1 parent ac911d7 commit ef23b40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cdp/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ module.exports = async function connect(argv, files, debugging) {

await Promise.all([DOM.enable(), DOMStorage.enable(), Network.enable(), Page.enable(), Runtime.enable(), Console.enable()]);
const sourceMapSupport = `${path.dirname(require.resolve('source-map-support'))}/browser-source-map-support.js`;
await Page.addScriptToEvaluateOnLoad({ scriptSource: `${getContent(sourceMapSupport)};sourceMapSupport.install();` });
await Page.addScriptToEvaluateOnLoad({ scriptSource: `${getContent(sourceMapSupport)};` });
await Page.addScriptToEvaluateOnLoad({ scriptSource: 'sourceMapSupport.install();' });
await Page.addScriptToEvaluateOnLoad({ scriptSource: injectMediator });
await Page.addScriptToEvaluateOnLoad({ scriptSource: injectMochaOptions });
await Page.addScriptToEvaluateOnLoad({ scriptSource: injectAwFiles });
Expand Down

0 comments on commit ef23b40

Please sign in to comment.