Merge branch 'master' of https://github.com/merelendor/evoleasing-account
This commit is contained in:
commit
5de07d09b1
@ -59,12 +59,12 @@ WrappedApp.getInitialProps = async (props) =>
|
||||
const { req } = props.ctx;
|
||||
|
||||
let observer = true;
|
||||
if(req.url.indexOf("offstage") > -1)
|
||||
if(req !== undefined && req.url !== null && req.url.indexOf("offstage") > -1)
|
||||
{
|
||||
observer = false;
|
||||
}
|
||||
|
||||
if(req.cookies !== undefined && req.cookies.observer !== undefined && req.cookies.observer === "true")
|
||||
if(req !== undefined && req.cookies !== undefined && req.cookies.observer !== undefined && req.cookies.observer === "true")
|
||||
{
|
||||
observer = false;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user