Merge pull request #226 from mozilla/fix-linter-errors
fix linter errors
This commit is contained in:
commit
bdddb6be9e
1 changed files with 5 additions and 5 deletions
10
index.js
10
index.js
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue