File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import _ from 'lodash' ;
22import { util } from '@appium/support' ;
33
4- export const decode = ( input : string | { ' ELEMENT' : string } | { [ util . W3C_WEB_ELEMENT_IDENTIFIER ] : string } ) : string => {
4+ export const decode = ( input : string | { ELEMENT : string } | { [ util . W3C_WEB_ELEMENT_IDENTIFIER ] : string } ) : string => {
55 let base64String : string = `` ;
66 if ( _ . isString ( input ) ) {
77 base64String = input as string ;
88 } else if ( _ . has ( input , util . W3C_WEB_ELEMENT_IDENTIFIER ) ) {
99 base64String = input [ util . W3C_WEB_ELEMENT_IDENTIFIER ] as string ;
1010 } else if ( _ . has ( input , 'ELEMENT' ) ) {
11- base64String = input [ 'ELEMENT' ] as string ;
11+ // @ts -ignore TS2339
12+ base64String = input . ELEMENT as string ;
1213 } else {
1314 throw new Error (
1415 `Input is is expceted to be a base64-encoded string or a valid element object. ` +
You can’t perform that action at this time.
0 commit comments