mirror of https://github.com/gorhill/uBlock.git
fix https://github.com/uBlockOrigin/uBlock-issues/issues/164 [regression]
This commit is contained in:
parent
6db88e67b1
commit
4bb1ec5cff
|
@ -164,7 +164,7 @@ let decodeValue = function(key, inputArray) {
|
||||||
return {
|
return {
|
||||||
encode: function(key, dataIn) {
|
encode: function(key, dataIn) {
|
||||||
if ( typeof dataIn !== 'string' || dataIn.length < 4096 ) {
|
if ( typeof dataIn !== 'string' || dataIn.length < 4096 ) {
|
||||||
return Promise.resolve({ key, dataIn });
|
return Promise.resolve({ key, data: dataIn });
|
||||||
}
|
}
|
||||||
ttlManage(1);
|
ttlManage(1);
|
||||||
return init().then(( ) => {
|
return init().then(( ) => {
|
||||||
|
@ -178,7 +178,7 @@ return {
|
||||||
},
|
},
|
||||||
decode: function(key, dataIn) {
|
decode: function(key, dataIn) {
|
||||||
if ( dataIn instanceof Blob === false ) {
|
if ( dataIn instanceof Blob === false ) {
|
||||||
return Promise.resolve({ key, dataIn });
|
return Promise.resolve({ key, data: dataIn });
|
||||||
}
|
}
|
||||||
ttlManage(1);
|
ttlManage(1);
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
|
|
Loading…
Reference in New Issue