Skip to content

Commit 4e1aad3

Browse files
committed
fix: Unnecessary instantiation of Winboat singleton in App.vue
Instantiating the winboat instance here resulted in a bunch of errors getting spammed in the logs, resulting from trying to get the container status in the
1 parent d9f2c4b commit 4e1aad3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ import { Winboat } from './lib/winboat';
134134
import { openAnchorLink } from './utils/openLink';
135135
import { WinboatConfig } from './lib/config';
136136
import { USBManager } from './lib/usbmanager';
137-
import { GUEST_NOVNC_PORT, NOVNC_URL } from './lib/constants';
137+
import { GUEST_NOVNC_PORT } from './lib/constants';
138138
const { BrowserWindow }: typeof import('@electron/remote') = require('@electron/remote')
139139
const os: typeof import('os') = require('os')
140140
const path: typeof import('path') = require('path')
@@ -154,14 +154,14 @@ const rerenderCounter = ref(0); // TODO: Hack for non-reactive data
154154
const novncURL = ref("");
155155
156156
onMounted(async () => {
157-
new USBManager(); // Instantiate singleton class
158157
const winboatInstalled = await isInstalled();
159158
if (!winboatInstalled) {
160159
console.log("Not installed, redirecting to setup...")
161160
$router.push('/setup');
162161
} else {
163162
winboat = new Winboat(); // Instantiate singleton class
164163
wbConfig = new WinboatConfig(); // Instantiate singleton class
164+
new USBManager(); // Instantiate singleton class
165165
$router.push('/home');
166166
}
167167

0 commit comments

Comments
 (0)