mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
22 lines
886 B
TypeScript
22 lines
886 B
TypeScript
import { createRoot } from 'react-dom/client';
|
|
import { InitDownloadInfoInterface } from '../main/ipcs/bs-download-ipcs';
|
|
import App from './App';
|
|
import 'tailwindcss/tailwind.css';
|
|
import './index.css'
|
|
|
|
const container = document.getElementById('root')!;
|
|
const root = createRoot(container);
|
|
root.render(<App />);
|
|
|
|
// setTimeout(() => {
|
|
// window.electron.ipcRenderer.sendMessage('bs-download.start', {app: '620980', depot: '620981', manifest: '6222769774084748916', stay: true, username: 'lekilleur618', folder: 'test2', cwd: 'C:\\test'} as InitDownloadInfoInterface);
|
|
// }, 5000);
|
|
|
|
// window.electron.ipcRenderer.on('bs-download.ask-password', () => console.log('omg popup password'));
|
|
|
|
setTimeout(() => {
|
|
window.electron.ipcRenderer.sendMessage('test-launch', null);
|
|
}, 5000);
|
|
|
|
window.electron.ipcRenderer.on('bs-download.ask-password', () => console.log('omg popup password'));
|