Переведите на рески1 : cr.define("adapter_broker",function(){let AdapterRemote;let DeviceRemote;let DiscoverySessionRemote;const AdapterProperty={DISCOVERABLE:"discoverable",DISCOVERING:"discovering",POWERED:"powered",PRESENT:"present"};class AdapterBroker extends cr.EventTarget{constructor(adapter){super();this.adapterClientReceiver_=new bluetooth.mojom.AdapterClientReceiver(this);this.adapter_=adapter;this.adapter_.setClient(this.adapterClientReceiver_.$.bindNewPipeAndPassRemote())}presentChanged(present){this.dispatchEvent(new CustomEvent("adapterchanged",{detail:{property:AdapterProperty.PRESENT,value:present}}))}poweredChanged(powered){this.dispatchEvent(new CustomEvent("adapterchanged",{detail:{property:AdapterProperty.POWERED,value:powered}}))}discoverableChanged(discoverable){this.dispatchEvent(new CustomEvent("adapterchanged",{detail:{property:AdapterProperty.DISCOVERABLE,value:discoverable}}))}discoveringChanged(discovering){this.dispatchEvent(new CustomEvent("adapterchanged",{detail:{property:AdapterProperty.DISCOVERING,value:discovering}}))}deviceAdded(device){this.dispatchEvent(new CustomEvent("deviceadded",{detail:{deviceInfo:device}}))}deviceChanged(device){this.dispatchEvent(new CustomEvent("devicechanged",{detail:{deviceInfo:device}}))}deviceRemoved(device){this.dispatchEvent(new CustomEvent("deviceremoved",{detail:{deviceInfo:device}}))}connectToDevice(address){return this.adapter_.connectToDevice(address).then(function(response){if(response.result!=bluetooth.mojom.ConnectResult.SUCCESS){const ConnectResult=bluetooth.mojom.ConnectResult;const errorString=Object.keys(ConnectResult).find(function(key){return ConnectResult[key]===response.result});throw new Error(errorString)}return response.device})}getDevices(){return this.adapter_.getDevices()}getInfo(){return this.adapter_.getInfo()}startDiscoverySession(){return this.adapter_.startDiscoverySession().then(function(response){if(!response.session){throw new Error("Discovery session failed to start")}return response.session})}}let adapterBroker=null;function getAdapterBroker(opt_){if(adapterBroker){return Promise.resolve(adapterBroker)}const =opt_?opt_:mojom..getRemote();return .getAdapter().then(function(response){if(!response.adapter){throw new Error("Bluetooth Not Supported on this platform.")}adapterBroker=new AdapterBroker(response.adapter);return adapterBroker})}return{AdapterBroker:AdapterBroker,AdapterProperty:AdapterProperty,getAdapterBroker:getAdapterBroker}});
это скрипт адаптера chrome://bluetooth-internals
Он используется выше на картинке