A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: preventSilentAccess
thecodrrdc751c3712b3
diff --git a/apps/web/src/stores/user-store.js b/apps/web/src/stores/user-store.jsindex dc56538ea..43d89b4d4 100644--- a/apps/web/src/stores/user-store.js+++ b/apps/web/src/stores/user-store.js@@ -32,6 +32,13 @@ class UserStore extends BaseStore {});});EV.subscribe("db:sync", () => this.sync(false));+ EV.subscribe("user:loggedOut", async () => {+ if (window.PasswordCredential) {+ await navigator.credentials.preventSilentAccess();+ if (navigator.credentials.requireUserMediation)+ await navigator.credentials.requireUserMediation();+ }+ });await this.sync();return true;});diff --git a/apps/web/src/views/settings.js b/apps/web/src/views/settings.jsindex 5dc702829..58e72abde 100644--- a/apps/web/src/views/settings.js+++ b/apps/web/src/views/settings.js@@ -191,8 +191,6 @@ function Settings(props) {variant="list"onClick={async () => {if (await showLogoutConfirmation()) {- if (window.PasswordCredential)- await navigator.credentials.preventSilentAccess();await logout();}}}