fix chrome://flags crash

This commit is contained in:
Carmelo Messina
2024-01-04 17:33:03 +01:00
parent 331a371df0
commit 672a5061d3
@@ -2169,7 +2169,7 @@ diff --git a/ui/webui/resources/js/load_time_data.ts b/ui/webui/resources/js/loa
set data(value: LoadTimeDataRaw) {
assert(!this.data_, 'Re-setting data.');
this.data_ = value;
+ if (this.getValue("chromeAndroid") != "")
+ if (this.data_["chromeAndroid"] !== undefined && this.getValue("chromeAndroid") != "")
+ this.is_android_ = true;
}