Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
4ab7cfef
Commit
4ab7cfef
authored
Jan 11, 2016
by
Matthew Taylor
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #314 from mewtaylor/issue/gh-251-ban-undefined
Fix GH-251: log error for session request if there
parents
f88984f2
1382fc48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/init.js
src/init.js
+8
-4
No files found.
src/init.js
View file @
4ab7cfef
...
...
@@ -37,10 +37,14 @@ var translations = require('../locales/translations.json');
host
:
''
,
uri
:
'
/session/
'
},
function
(
err
,
body
)
{
if
(
body
.
banned
)
{
return
window
.
location
=
body
.
redirectUrl
;
}
else
{
window
.
updateSession
(
body
);
if
(
err
)
return
;
if
(
typeof
body
!==
'
undefined
'
)
{
if
(
body
.
banned
)
{
return
window
.
location
=
body
.
redirectUrl
;
}
else
{
window
.
updateSession
(
body
);
}
}
});
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment