Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Not able to use kinto-client from a script tag. #77

Closed
almet opened this issue Apr 19, 2016 · 2 comments
Closed

Not able to use kinto-client from a script tag. #77

almet opened this issue Apr 19, 2016 · 2 comments
Labels

Comments

@almet
Copy link
Member

almet commented Apr 19, 2016

I tried following the documentation and loaded the kinto-client package from a script tag, but it doesn't seem to be working.

I also built the project from latest master and checked with the minified and unminified version, and I still have the same symptoms.

Here is a capture of the console:

@almet almet added the bug label Apr 19, 2016
@almet
Copy link
Member Author

almet commented Apr 19, 2016

So, it seems that the instanciation should be done like this:

var kinto = new KintoClient.default("http://localhost:8888/v1");

@almet
Copy link
Member Author

almet commented Apr 19, 2016

While I now have a workaround, I think this is counter-intuitive. We should either document it or make it possible to work with new KintoClient("url").

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant