createObjectURL giving not enough arguments

124 Views Asked by At

I want to get the url of a blob, and I'm doing the following:

(.. js/window -URL createObjectURL blob)

to mimic the JS

window.URL.createObjectURL(blob)

But I get the following error:

TypeError: Not enough arguments (at createObjectURL)

What am I doing wrong?

1

There are 1 best solutions below

0
Thomas Heller On

Your use is incorrect. Needs an extra pair of parens so blob becomes an actual argument and not the "next" step.

(.. js/window -URL (createObjectURL blob))