feat: establish reproducible FreeCAD web compatibility baseline
This commit is contained in:
7
scripts/chrome-profile.mjs
Normal file
7
scripts/chrome-profile.mjs
Normal file
@@ -0,0 +1,7 @@
|
||||
import { mkdtemp, rm } from 'node:fs/promises'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
export const createChromeProfile = (name) => mkdtemp(join(tmpdir(), `bitbybit-${name}-`))
|
||||
|
||||
export const removeChromeProfile = (profile) => rm(profile, { recursive: true, force: true, maxRetries: 3, retryDelay: 100 })
|
||||
Reference in New Issue
Block a user