Updated readme

Updated reference to admin url needed for initialization as api domain, same as used by other api clients.
This commit is contained in:
Rish 2020-04-23 17:57:41 +05:30
parent c1a5c67e37
commit 1a97c7d161

View File

@ -13,8 +13,9 @@ To load members.js in any Ghost theme, add below code in theme's `default.hbs` b
<script type="text/javascript" src="https://unpkg.com/@tryghost/members-js@0.1.1"></script> <script type="text/javascript" src="https://unpkg.com/@tryghost/members-js@0.1.1"></script>
<script> <script>
// Initializes members.js // Initializes members.js
// adminUrl: Your API domain, must not end in a trailing slash(Ref: https://ghost.org/docs/api/v3/javascript/admin/#authentication)
window.GhostMembers.init({ window.GhostMembers.init({
adminUrl: 'https://youradminurl.com' // Ex. http://localhost:2368/ghost adminUrl: 'https://youradminurl.com'
}); });
</script> </script>
``` ```