session bug fix

This commit is contained in:
lockbitchat
2025-10-13 11:13:11 -04:00
parent 45de8ce285
commit d292c84829
16 changed files with 3819 additions and 58 deletions

View File

@@ -1,6 +1,7 @@
import { EnhancedSecureCryptoUtils } from '../crypto/EnhancedSecureCryptoUtils.js';
import { EnhancedSecureWebRTCManager } from '../network/EnhancedSecureWebRTCManager.js';
import { EnhancedSecureFileTransfer } from '../transfer/EnhancedSecureFileTransfer.js';
import BluetoothKeyTransfer from '../transfer/BluetoothKeyTransfer.js';
// Import UI components (side-effect: they attach themselves to window.*)
import '../components/ui/Header.jsx';
@@ -11,11 +12,13 @@ import '../components/ui/Testimonials.jsx';
import '../components/ui/ComparisonTable.jsx';
import '../components/ui/Roadmap.jsx';
import '../components/ui/FileTransfer.jsx';
import '../components/ui/BluetoothKeyTransfer.jsx';
// Expose to global for legacy usage inside app code
window.EnhancedSecureCryptoUtils = EnhancedSecureCryptoUtils;
window.EnhancedSecureWebRTCManager = EnhancedSecureWebRTCManager;
window.EnhancedSecureFileTransfer = EnhancedSecureFileTransfer;
window.BluetoothKeyTransfer = BluetoothKeyTransfer;
// Mount application once DOM and modules are ready
const start = () => {

View File

@@ -3,10 +3,11 @@
(async () => {
try {
const timestamp = Date.now();
const [cryptoModule, webrtcModule, fileTransferModule] = await Promise.all([
const [cryptoModule, webrtcModule, fileTransferModule, bluetoothModule] = await Promise.all([
import(`../crypto/EnhancedSecureCryptoUtils.js?v=${timestamp}`),
import(`../network/EnhancedSecureWebRTCManager.js?v=${timestamp}`),
import(`../transfer/EnhancedSecureFileTransfer.js?v=${timestamp}`),
import(`../transfer/BluetoothKeyTransfer.js?v=${timestamp}`),
]);
const { EnhancedSecureCryptoUtils } = cryptoModule;
@@ -15,6 +16,8 @@
window.EnhancedSecureWebRTCManager = EnhancedSecureWebRTCManager;
const { EnhancedSecureFileTransfer } = fileTransferModule;
window.EnhancedSecureFileTransfer = EnhancedSecureFileTransfer;
const { default: BluetoothKeyTransfer } = bluetoothModule;
window.BluetoothKeyTransfer = BluetoothKeyTransfer;
async function loadReactComponent(path) {
const response = await fetch(`${path}?v=${timestamp}`);
@@ -33,6 +36,7 @@
loadReactComponent('../components/ui/Testimonials.jsx'),
loadReactComponent('../components/ui/Roadmap.jsx'),
loadReactComponent('../components/ui/FileTransfer.jsx'),
loadReactComponent('../components/ui/BluetoothKeyTransfer.jsx'),
]);
if (typeof window.initializeApp === 'function') {