Skip to content

Commit

Permalink
fix null check for devices (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikiyengar authored Jul 2, 2020
1 parent 457116e commit 14d4d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PlaywrightEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const getPlaywrightEnv = (basicEnv = 'node'): unknown => {
}
}

if (device !== null) {
if (device != null) {
if (typeof device === 'string') {
deviceName = device
contextOptions = { ...devices[device], ...contextOptions }
Expand Down

0 comments on commit 14d4d0d

Please sign in to comment.