Skip to content

Fix uuid generation. uuid is an object, it's uuid.uuid() who's a function - #112

Open
sand97 wants to merge 1 commit into
h2non:masterfrom
sand97:master
Open

Fix uuid generation. uuid is an object, it's uuid.uuid() who's a function#112
sand97 wants to merge 1 commit into
h2non:masterfrom
sand97:master

Conversation

@sand97

@sand97 sand97 commented Aug 12, 2022

Copy link
Copy Markdown

When you call uuid() it generate and Exception, "...is not a function" in electron production

Comment thread lib/render.js

function randomName() {
return path.join(os.tmpdir(), 'videoshow-' + uuid())
return path.join(os.tmpdir(), 'videoshow-' + uuid.uuid())

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use internal Crypto.randomUUID instead of an external library here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants