Skip to content

Commit

Permalink
fix: matching rule cause ff upgrade backup can't be read
Browse files Browse the repository at this point in the history
  • Loading branch information
117649 committed May 14, 2024
1 parent d7faeb9 commit a9ab0ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resource/modules/paneSession.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ this.paneSession = {
}

let p = aFile.path || aFile;
window.IOUtils.read(p, p.endsWith("lz4") ? { decompress: true } : null).then(async (savedState) => {
window.IOUtils.readUTF8(p, p.match(".(bak|json)lz4")[0] ? { decompress: true } : null).then(async (savedState) => {

this.manualAction = aManualAction;

Expand Down Expand Up @@ -569,7 +569,7 @@ this.paneSession = {
},

getStateForData: function(data) {
return JSON.parse((new TextDecoder()).decode(data));
return JSON.parse(data);
},

readState: function(state) {
Expand Down

0 comments on commit a9ab0ee

Please sign in to comment.