Skip to content
Snippets Groups Projects
Unverified Commit 4ff02c50 authored by Manjinder Singh's avatar Manjinder Singh Committed by GitHub
Browse files

feat: fixing javascript in sandbox (#28565)

parent 23bf7f17
No related branches found
Tags release-2020-08-27-14.14
No related merge requests found
......@@ -9,11 +9,12 @@
userFromEdxUserCookie: function() {
var hostname = this.getHostname();
var isLocalhost = hostname.indexOf('localhost') >= 0;
var isSandbox = hostname.indexOf('sandbox') >=0;
var isStage = hostname.indexOf('stage') >= 0;
var isEdge = hostname.indexOf('edge') >= 0;
var cookie, edxUserCookie, prefix, user, userCookie;
if (isLocalhost) {
if (isLocalhost || isSandbox) {
// localhost doesn't have prefixes
edxUserCookie = 'edx-user-info';
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment