Skip to content

Commit a91f588

Browse files
hjanuschkaDevtools-frontend LUCI CQ
authored andcommitted
Fix unused accuracyError variable in SensorsView
The accuracyError HTMLElement was declared and created but never used to display validation errors. Bug: 40074843 Change-Id: I0e627bd0066a86b124601d7ddc1d57aab747b4e8 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6828850 Reviewed-by: Alex Rudenko <[email protected]> Reviewed-by: Simon Zünd <[email protected]> Commit-Queue: Simon Zünd <[email protected]>
1 parent 53298fc commit a91f588

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

front_end/panels/sensors/SensorsView.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ export class SensorsView extends UI.Widget.VBox {
384384
#locationSelectChanged(): void {
385385
this.fieldsetElement.disabled = false;
386386
this.timezoneError.textContent = '';
387+
this.accuracyError.textContent = '';
387388
const value = this.locationSelectElement.options[this.locationSelectElement.selectedIndex].value;
388389
if (value === NonPresetOptions.NoOverride) {
389390
this.#locationOverrideEnabled = false;
@@ -430,6 +431,7 @@ export class SensorsView extends UI.Widget.VBox {
430431
}
431432

432433
this.timezoneError.textContent = '';
434+
this.accuracyError.textContent = '';
433435

434436
this.setSelectElementLabel(this.locationSelectElement, NonPresetOptions.Custom);
435437
this.#location = location;
@@ -453,6 +455,10 @@ export class SensorsView extends UI.Widget.VBox {
453455
this.localeError.textContent = err.message;
454456
break;
455457
}
458+
case 'emulation-set-accuracy': {
459+
this.accuracyError.textContent = err.message;
460+
break;
461+
}
456462
}
457463
});
458464
}

0 commit comments

Comments
 (0)