mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1203668 part 2 - Fix dependency on this bug in devtools code. r=bz
This commit is contained in:
parent
44f9e4fcdc
commit
c6ff9e9eb2
@ -145,7 +145,7 @@ var SimulatorEditor = {
|
||||
// Select an available option, or set the "custom" option.
|
||||
updateSelector(selector, value) {
|
||||
selector.value = value;
|
||||
if (selector[selector.selectedIndex].value !== value) {
|
||||
if (selector.selectedIndex == -1) {
|
||||
selector.value = "custom";
|
||||
selector.classList.add("custom");
|
||||
selector[selector.selectedIndex].textContent = value;
|
||||
|
Loading…
Reference in New Issue
Block a user