mirror of https://git.sr.ht/~ashkeel/strimertul
fix: fix kv connection error in extensions
This commit is contained in:
parent
2cf63534e5
commit
bc6c76c581
|
@ -1 +1 @@
|
|||
293b48c0e126b4f88d9b5ba934df5908
|
||||
b9df5eb6f4841737d2fcd1301b0eb45f
|
|
@ -59,11 +59,10 @@ onmessage = async (ev: MessageEvent<ExtensionHostCommand>) => {
|
|||
switch (cmd.kind) {
|
||||
case 'arguments': {
|
||||
// Create Kilovolt instance
|
||||
kv = new Kilovolt(
|
||||
cmd.dependencies.kilovolt.address,
|
||||
cmd.dependencies.kilovolt.password,
|
||||
);
|
||||
await kv.wait();
|
||||
kv = new Kilovolt(cmd.dependencies.kilovolt.address, {
|
||||
password: cmd.dependencies.kilovolt.password,
|
||||
});
|
||||
await kv.connect();
|
||||
|
||||
try {
|
||||
// Transpile TS into JS
|
||||
|
|
Loading…
Reference in New Issue