File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -336,14 +336,6 @@ export async function doPromptEdit({
336
336
const toastId = toast . loading ( 'Submitting to Text-to-CAD API...' )
337
337
338
338
let submitResult
339
-
340
- // work around for @kittycad /lib not really being built for the browser
341
- ; ( window as any ) . process = {
342
- env : {
343
- ZOO_API_TOKEN : token ,
344
- ZOO_HOST : withAPIBaseURL ( '' ) ,
345
- } ,
346
- }
347
339
try {
348
340
submitResult = await submitPromptToEditToQueue ( {
349
341
prompt,
Original file line number Diff line number Diff line change @@ -216,9 +216,9 @@ async function getAndSyncStoredToken(input: {
216
216
[ 'api token' , ! ! VITE_KITTYCAD_API_TOKEN ] ,
217
217
] )
218
218
if ( token ) {
219
- // has just logged in, update storage
220
- localStorage . setItem ( TOKEN_PERSIST_KEY , token )
221
219
if ( isDesktop ( ) ) {
220
+ // has just logged in, update storage
221
+ localStorage . setItem ( TOKEN_PERSIST_KEY , token )
222
222
await writeTokenFile ( token )
223
223
}
224
224
return token
You can’t perform that action at this time.
0 commit comments