File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -281,9 +281,9 @@ async function _parseCapabilities (id, capability) {
281281 if ( browserName && browserName . trim ( ) . toLowerCase ( ) === 'firefox' && browserVersion && browserVersion . split ( '.' ) [ 0 ] > 47 && ! ( 'enableCustomTranslation' in capabilities [ id ] ) ) capabilities [ id ] . enableCustomTranslation = true ;
282282
283283 if ( browserName && browserName . trim ( ) . toLowerCase ( ) === 'safari' && browserVersion && browserVersion . split ( '.' ) [ 0 ] > 11 && ! ( 'enableCustomTranslation' in capabilities [ id ] ) ) capabilities [ id ] . enableCustomTranslation = true ;
284-
285- if ( ! browserVersion || browserVersion === 'any' && additionalCapabilities [ capability ] !== undefined ) {
284+ if ( ! browserVersion || browserVersion === 'any' && typeof additionalCapabilities [ capability ] !== 'undefined' ) {
286285 const browserVersionKey = additionalCapabilities [ capability ] [ 'browserVersion' ] ;
286+
287287 if ( browserName && browserName . trim ( ) . toLowerCase ( ) === 'firefox' && browserVersionKey && browserVersionKey . split ( '.' ) [ 0 ] > 47 && ! ( 'enableCustomTranslation' in capabilities [ id ] ) ) capabilities [ id ] . enableCustomTranslation = true ;
288288 if ( browserName && browserName . trim ( ) . toLowerCase ( ) === 'safari' && browserVersionKey && browserVersionKey . split ( '.' ) [ 0 ] > 11 && ! ( 'enableCustomTranslation' in capabilities [ id ] ) ) capabilities [ id ] . enableCustomTranslation = true ;
289289
You can’t perform that action at this time.
0 commit comments