Skip to content

Commit

Permalink
fix(ui): profiles panel is all yellow (GoogleChromeLabs#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman authored and alexkozy committed Jul 28, 2018
1 parent 1ab22ef commit 5462a41
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions front_end/ndb/NdbMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,3 +606,11 @@ SDK.DebuggerModel.prototype.setBreakpointByURL = async function(url, lineNumber,
SDK.Target.prototype.decorateLabel = function(label) {
return this.name();
};

// Front-end does not respect modern toggle semantics, patch it.
var originalToggle = DOMTokenList.prototype.toggle;
DOMTokenList.prototype.toggle = function(token, force) {
if (arguments.length === 1)
force = !this.contains(token);
return originalToggle.call(this, token, !!force);
};

0 comments on commit 5462a41

Please sign in to comment.