prismicio / javascript-kit

Development kit for the Javascript language
https://developers.prismic.io
106 stars 69 forks source link

fix(api): pass correct opts to new Api #117

Closed martijndeh closed 8 years ago

martijndeh commented 8 years ago

This fixes an issue when upgrading from v2 to v3 where the access token and other options were not passed to the Api constructor function properly. The opts in legacy 2 branch are using the legacy names as keys. maybe... is not used in the Api constructor function. This changes those keys to the correct keys used in the Api constructor function.

erwan commented 8 years ago

thank you!