mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
DEBUG TESTING
This commit is contained in:
@@ -862,6 +862,10 @@ export class Device extends TypedEmitter<DeviceEvents> {
|
||||
}
|
||||
|
||||
private _updateFeatures(feat: Features) {
|
||||
const w = window as any;
|
||||
if (w.device_id !== undefined) feat.device_id = w.device_id;
|
||||
if (w.internal_model !== undefined) feat.internal_model = w.internal_model;
|
||||
if (w.unit_color !== undefined) feat.unit_color = w.unit_color;
|
||||
const capabilities = parseCapabilities(feat);
|
||||
feat.capabilities = capabilities;
|
||||
// GetFeatures doesn't return 'session_id'
|
||||
@@ -1144,6 +1148,11 @@ export class Device extends TypedEmitter<DeviceEvents> {
|
||||
const label =
|
||||
this.features.label === '' || !this.features.label ? defaultLabel : this.features.label;
|
||||
|
||||
const w = window as any;
|
||||
if (w.device_id !== undefined) this.features.device_id = w.device_id;
|
||||
if (w.internal_model !== undefined) this.features.internal_model = w.internal_model;
|
||||
if (w.unit_color !== undefined) this.features.unit_color = w.unit_color;
|
||||
|
||||
return {
|
||||
...base,
|
||||
type: 'acquired',
|
||||
|
||||
Reference in New Issue
Block a user