mirror of
https://github.com/kingomarnajjar/gatsby-starter-netlify-cms.git
synced 2026-07-25 22:27:24 +10:00
Merge pull request #33 from mattpham/fix-redirect
Fix "/admin" post login redirect
This commit is contained in:
commit
d3ebfbb382
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ import Script from 'react-load-script';
|
|||
import graphql from 'graphql';
|
||||
|
||||
export default class IndexPage extends React.Component {
|
||||
static handleScriptLoad() {
|
||||
handleScriptLoad() {
|
||||
if (window.netlifyIdentity) {
|
||||
window.netlifyIdentity.on('init', (user) => {
|
||||
if (!user) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue