mirror of
https://github.com/kccleoc/seedpgp-web.git
synced 2026-03-07 09:57:50 +08:00
security improvement and bugs fixing; modify makefile
This commit is contained in:
12
src/App.tsx
12
src/App.tsx
@@ -76,7 +76,7 @@ function App() {
|
||||
const [blenderResetKey, setBlenderResetKey] = useState(0);
|
||||
|
||||
// Network blocking state
|
||||
const [isNetworkBlocked, setIsNetworkBlocked] = useState(false);
|
||||
const [isNetworkBlocked, setIsNetworkBlocked] = useState(true);
|
||||
|
||||
// Entropy generation states
|
||||
const [entropySource, setEntropySource] = useState<'camera' | 'dice' | 'audio' | 'randomorg' | null>(null);
|
||||
@@ -120,6 +120,16 @@ function App() {
|
||||
return () => clearInterval(interval);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
blockAllNetworks();
|
||||
// setIsNetworkBlocked(true); // already set by default state
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
blockAllNetworks();
|
||||
// setIsNetworkBlocked(true); // already set by default state
|
||||
}, []);
|
||||
|
||||
|
||||
|
||||
// Cleanup session key on component unmount
|
||||
|
||||
Reference in New Issue
Block a user