Skip to content

Commit

Permalink
core(web-inspector): keep all experiments disabled, fixing conflict w…
Browse files Browse the repository at this point in the history
…hen running in DevTools (#4010)
  • Loading branch information
paulirish authored and patrickhulce committed Dec 8, 2017
1 parent cf92030 commit d782494
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lighthouse-core/lib/web-inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ module.exports = (function() {
const _setImmediate = global.setImmediate;

global.Runtime = global.Runtime || {};

// Required for devtools-timeline-model
global.Runtime.experiments = global.Runtime.experiments || {};
global.Runtime.experiments.isEnabled = global.Runtime.experiments.isEnabled || (_ => false);
// DevTools runtime doesn't know about some experiments that DTM looks for
// To avoid exceptions, we assume all experiments are disabled
global.Runtime.experiments.isEnabled = (_ => false);

const _queryParam = global.Runtime.queryParam;
global.Runtime.queryParam = function(arg) {
Expand Down

0 comments on commit d782494

Please sign in to comment.