feat: fixing javascript in sandbox (#28565)

This commit is contained in:
Manjinder Singh
2021-08-30 15:41:32 -04:00
committed by GitHub
parent 23bf7f1795
commit 4ff02c50a4

View File

@@ -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 {