File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 CDPNode ,
77 CDPClient ,
88 InspectOptions ,
9- ScreenSetting ,
9+ Device ,
1010 RawInspectResult ,
1111 ParsedInspectResult ,
1212 InspectResult ,
@@ -477,8 +477,8 @@ export class Inspector extends EventEmitter {
477477 await this . sendCommand ( "Overlay.hideHighlight" ) ;
478478 }
479479
480- async setScreen ( screen : ScreenSetting ) : Promise < void > {
481- await this . sendCommand ( "Emulation.setDeviceMetricsOverride" , screen ) ;
480+ async setDevice ( device : Device ) : Promise < void > {
481+ await this . sendCommand ( "Emulation.setDeviceMetricsOverride" , device ) ;
482482 }
483483
484484 async inspect (
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export type CDPClient = {
3939 off : ( event : string , callback : ( data : any ) => void ) => void ;
4040} ;
4141
42- export type ScreenSetting = {
42+ export type Device = {
4343 width : number ;
4444 height : number ;
4545 deviceScaleFactor : number ;
You can’t perform that action at this time.
0 commit comments