mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
54560050c6
refs https://github.com/TryGhost/Ghost/issues/10886 Since updating the static pages, the auth pages would be broken, this updates them to correctly parse and load the static urls.
25 lines
581 B
JavaScript
25 lines
581 B
JavaScript
import './styles/members.css';
|
|
import {Component} from 'preact';
|
|
|
|
import MembersProvider from './components/MembersProvider';
|
|
import Modal from './components/Modal';
|
|
|
|
export default class App extends Component {
|
|
constructor() {
|
|
super();
|
|
const apiUrl = window.location.href.substring(0, window.location.href.indexOf('/static/auth'));
|
|
|
|
this.state = {
|
|
apiUrl
|
|
};
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<MembersProvider apiUrl={ this.state.apiUrl }>
|
|
<Modal />
|
|
</MembersProvider>
|
|
);
|
|
}
|
|
}
|