mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Updated init method to take siteUrl named param
This commit is contained in:
parent
87690f9a03
commit
5b8fe0f643
@ -14,7 +14,7 @@ or
|
||||
```js
|
||||
const MembersThemeBindings = require('@tryghost/members-theme-bindings');
|
||||
|
||||
MembersThemeBindings.init("http://ghost-site.com/root-ghost-path");
|
||||
MembersThemeBindings.init({siteUrl: "https://ghost-site.com/root-ghost-path"});
|
||||
```
|
||||
|
||||
## Develop
|
||||
|
@ -4,8 +4,8 @@ const browserAuth = require('@tryghost/members-browser-auth');
|
||||
|
||||
module.exports.init = init;
|
||||
|
||||
function init(membersUrl) {
|
||||
const auth = browserAuth({membersUrl});
|
||||
function init({siteUrl}) {
|
||||
const auth = browserAuth({membersUrl: siteUrl + '/members'});
|
||||
|
||||
const [hashMatch, hash, query] = window.location.hash.match(/^#([^?]+)\??(.*)$/) || [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user