Skip to content

Commit 14c43b1

Browse files
committed
simplify assigning new cri
1 parent f4384b8 commit 14c43b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/server/lib/browsers/cri-client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,11 @@ export const create = async (target: websocketUrl, onAsynchronousError: Function
179179

180180
debug('connecting %o', { target })
181181

182-
const newCri = await chromeRemoteInterface({
182+
cri = await chromeRemoteInterface({
183183
target,
184184
local: true,
185185
})
186186

187-
cri = newCri
188187
connected = true
189188

190189
maybeDebugCdpMessages(cri)

0 commit comments

Comments
 (0)