File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -328,6 +328,19 @@ def Driver(
328
328
uc_subprocess = True
329
329
else :
330
330
uc_subprocess = False
331
+ if uc_cdp_events or uc_cdp :
332
+ undetectable = True
333
+ uc_cdp_events = True
334
+ elif (
335
+ "--uc-cdp-events" in sys_argv
336
+ or "--uc_cdp_events" in sys_argv
337
+ or "--uc-cdp" in sys_argv
338
+ or "--uc_cdp" in sys_argv
339
+ ):
340
+ undetectable = True
341
+ uc_cdp_events = True
342
+ else :
343
+ uc_cdp_events = False
331
344
if undetectable and is_mobile :
332
345
is_mobile = False
333
346
user_agent = None
Original file line number Diff line number Diff line change @@ -444,6 +444,19 @@ def SB(
444
444
uc_subprocess = True
445
445
else :
446
446
uc_subprocess = False
447
+ if uc_cdp_events or uc_cdp :
448
+ undetectable = True
449
+ uc_cdp_events = True
450
+ elif (
451
+ "--uc-cdp-events" in sys_argv
452
+ or "--uc_cdp_events" in sys_argv
453
+ or "--uc-cdp" in sys_argv
454
+ or "--uc_cdp" in sys_argv
455
+ ):
456
+ undetectable = True
457
+ uc_cdp_events = True
458
+ else :
459
+ uc_cdp_events = False
447
460
if undetectable and is_mobile :
448
461
is_mobile = False
449
462
user_agent = None
You can’t perform that action at this time.
0 commit comments