[tor-browser#43258] Fixed LifeCycle error on update.
This commit is contained in:
parent
bdc3787d9d
commit
f9698a748f
|
@ -112,6 +112,7 @@ var LifeCycle = (() => {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
const data = toBase64(new Uint8Array(cypherText));
|
||||||
// random attribute name for DOM storage
|
// random attribute name for DOM storage
|
||||||
const attr = await sha256(data.concat(uuid()));
|
const attr = await sha256(data.concat(uuid()));
|
||||||
|
|
||||||
|
@ -133,7 +134,7 @@ var LifeCycle = (() => {
|
||||||
try {
|
try {
|
||||||
stored = await Messages.send("store", {
|
stored = await Messages.send("store", {
|
||||||
url,
|
url,
|
||||||
data: toBase64(new Uint8Array(cypherText)),
|
data,
|
||||||
attr,
|
attr,
|
||||||
},
|
},
|
||||||
{tabId, frameId: 0}
|
{tabId, frameId: 0}
|
||||||
|
|
Loading…
Reference in New Issue