Skip to content

Commit

Permalink
juicity: decoding on pinnedCertchain when gen config
Browse files Browse the repository at this point in the history
  • Loading branch information
shenghuang147 committed May 12, 2024
1 parent 1c3876d commit f6834f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/plugin_juicity/juicity.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ class juicityClass {
// 保存时调用(混合编辑后的值)
sharedStorageFromProfileCache() {
for (var k in this.defaultSharedStorage) {
// 确保不存在 percent encoding
if (k == "pinnedCertchainSha256" && this.defaultSharedStorage[k].isNotBlank()) {
this.sharedStorage[k] = decodeURIComponent(this.common.getKV(k))
continue
}

this.sharedStorage[k] = this.common.getKV(k);
}
this._onSharedStorageUpdated();
Expand Down

0 comments on commit f6834f3

Please sign in to comment.