Skip to content

Commit

Permalink
fix incompat issue with node 18.x
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Aug 15, 2024
1 parent f02c29d commit cb45da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/playwright.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { randomUUID } from 'node:crypto'
import type { Page } from '@playwright/test'

import { EventEmitter } from './EventEmitter.js'
import type { Web3ProviderConfig } from './backend.js'
import { createHeadlessWeb3Provider } from './factory.js'
Expand Down Expand Up @@ -43,7 +43,7 @@ export async function injectHeadlessWeb3Provider({
content: `window.EventEmitter = ${EventEmitter.toString()}`,
})

const uuid = crypto.randomUUID()
const uuid = randomUUID()

await page.addInitScript(
([uuid]) => {
Expand Down

0 comments on commit cb45da1

Please sign in to comment.