prismicio / javascript-kit

Development kit for the Javascript language

Home Page:https://developers.prismic.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api.previewSession syntax error

ds300 opened this issue · comments

At least I think this is a syntax error... previewSession binds a variable api and later refers to a self variable which, AFAICT, is supposed to be the same thing but has not been bound anywhere. This confuses me because no syntax errors are thrown when I use previewSession, but it doesn't work properly (the callback is never invoked/promise is never resolved). If I consolidate the bindings things work as expected.

I can submit a PR if you like.

thank you for the report, I'll fix it.

fixed in 2.1.1

Thanks for the quick fix! 👍