Skip to content

Commit

Permalink
fix: correct libsodium e2e encryption regression (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Aug 23, 2022
1 parent 5c5817f commit 37741f2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
},
"dependencies": {
"@babel/runtime": "^7.17.9",
"@openziti/ziti-browzer-core": "^0.16.8",
"@openziti/ziti-browzer-core": "^0.16.9",
"cookie-interceptor": "^1.0.0",
"core-js": "^3.22.8",
"js-base64": "^3.7.2",
Expand All @@ -102,4 +102,4 @@
"uuid": "^8.3.2",
"workbox-window": "^6.5.3"
}
}
}
10 changes: 10 additions & 0 deletions src/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ class ZitiBrowzerRuntime {
_toast(content, type) {
if (this.polipop) {
this.polipop.add({content: content, title: `OpenZiti BrowZer`, type: type});
} else {
if (type === `warning` || type === `error`) {
alert(content);
}
}
}

Expand Down Expand Up @@ -504,6 +508,12 @@ if (isUndefined(window.zitiBrowzerRuntime)) {
}, 25);

}

else if (event.data.type === 'SERVICE_UNAVAILABLE_TO_IDENTITY') {

window.zitiBrowzerRuntime.toastWarning(`${event.data.payload.message}`);

}

});

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1157,10 +1157,10 @@
"@types/emscripten" "^1.39.6"
"@wasmer/wasi" "^1.0.2"

"@openziti/ziti-browzer-core@^0.16.8":
version "0.16.8"
resolved "https://registry.yarnpkg.com/@openziti/ziti-browzer-core/-/ziti-browzer-core-0.16.8.tgz#4af6ec25329e6fe899385264cabfefd3c2f667c1"
integrity sha512-tf17gJZ+ME4CJD7fkoZCfE7S57OqEUZ4nqCoCKEATZgYMlsuqeE+bmfBhPgqRLCg60OPR4A2IdCLT3WUBUbRZw==
"@openziti/ziti-browzer-core@^0.16.9":
version "0.16.9"
resolved "https://registry.yarnpkg.com/@openziti/ziti-browzer-core/-/ziti-browzer-core-0.16.9.tgz#47f28a5e0a5aa68b39e686e95d0f29d3fb70c5f2"
integrity sha512-+/C6oOjoQFABK0Qs4xJmkpk/dHMfadgq4ljm76inxX3vr8K5NVh3Xfdo1gpna92LW29KlkChRuwlSd6YAFH75Q==
dependencies:
"@openziti/libcrypto-js" "^0.9.0"
"@openziti/ziti-browzer-edge-client" "^0.2.0"
Expand Down

0 comments on commit 37741f2

Please sign in to comment.