Skip to content

Commit

Permalink
Devtools: Don't clear custom user agent on double click
Browse files Browse the repository at this point in the history
BUG=584221

Review URL: https://codereview.chromium.org/1678953003

Cr-Commit-Position: refs/heads/master@{#374535}
  • Loading branch information
lisamuel authored and Commit bot committed Feb 9, 2016
1 parent 778934e commit 6b7b196
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions front_end/network/NetworkConfigView.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ WebInspector.NetworkConfigView.createUserAgentSelectAndInput = function()

function textDoubleClicked()
{
if (userAgentSelectElement.selectedIndex === userAgents.length - 1)
return;
userAgentSelectElement.selectedIndex = userAgents.length - 1;
userAgentSelected();
}
Expand Down

0 comments on commit 6b7b196

Please sign in to comment.