Explorar el Código

fix(desktop): set serverPassword

Brendan Allan hace 1 mes
padre
commit
b01eec38d1
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      packages/desktop/src/index.tsx

+ 3 - 1
packages/desktop/src/index.tsx

@@ -304,7 +304,9 @@ render(() => {
         )}
         <ServerGate>
           {(data) => {
-            setServerPassword(data().password)
+            setServerPassword(data().password);
+            window.__OPENCODE__ ??= {};
+            window.__OPENCODE__.serverPassword = data().password ?? undefined;
 
             return <AppInterface defaultUrl={data().url} />
           }}