Merge pull request #226 from mozilla/fix-linter-errors

fix linter errors
This commit is contained in:
John Gruen 2017-02-20 21:58:26 -05:00 committed by GitHub
commit bdddb6be9e

View file

@ -243,22 +243,22 @@ const ContainerService = {
color: "", color: "",
name: "Pending to be deleted", name: "Pending to be deleted",
public: true, public: true,
} };
} }
return identity; return identity;
} }
let oldGetIdentityFromId = ContextualIdentityService.getIdentityFromId; const oldGetIdentityFromId = ContextualIdentityService.getIdentityFromId;
ContextualIdentityService.getIdentityFromId = function(userContextId) { ContextualIdentityService.getIdentityFromId = function(userContextId) {
return workaroundForCookieManager(oldGetIdentityFromId, userContextId); return workaroundForCookieManager(oldGetIdentityFromId, userContextId);
} };
if ("getPublicIdentityFromId" in ContextualIdentityService) { if ("getPublicIdentityFromId" in ContextualIdentityService) {
let oldGetPublicIdentityFromId = ContextualIdentityService.getIdentityFromId; const oldGetPublicIdentityFromId = ContextualIdentityService.getIdentityFromId;
ContextualIdentityService.getIdentityFromId = function(userContextId) { ContextualIdentityService.getIdentityFromId = function(userContextId) {
return workaroundForCookieManager(oldGetPublicIdentityFromId, userContextId); return workaroundForCookieManager(oldGetPublicIdentityFromId, userContextId);
} };
} }
// End-Of-Hack // End-Of-Hack
}, },