Commit bb1611a
committed
Fix Electron browser detection order in inferBrowser
Move the Electron check before the Chrome check since Electron's
user-agent string always contains 'Chrome/', making the Electron
branch unreachable when placed after the Chrome check.1 parent 16a5be7 commit bb1611a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments