fix #626: cast message userContextId to string
This commit is contained in:
parent
1cc3ab83b9
commit
e28b25e04c
1 changed files with 6 additions and 0 deletions
|
@ -197,6 +197,12 @@ const assignManager = {
|
||||||
|
|
||||||
async _setOrRemoveAssignment(tabId, pageUrl, userContextId, remove) {
|
async _setOrRemoveAssignment(tabId, pageUrl, userContextId, remove) {
|
||||||
let actionName;
|
let actionName;
|
||||||
|
|
||||||
|
// https://github.com/mozilla/testpilot-containers/issues/626
|
||||||
|
// Context menu has stored context IDs as strings, so we need to coerce
|
||||||
|
// the value to a string for accurate checking
|
||||||
|
userContextId = String(userContextId);
|
||||||
|
|
||||||
if (!remove) {
|
if (!remove) {
|
||||||
await this.storageArea.set(pageUrl, {
|
await this.storageArea.set(pageUrl, {
|
||||||
userContextId,
|
userContextId,
|
||||||
|
|
Loading…
Add table
Reference in a new issue