File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ const onStartup = async (context: Context): Promise<void> => {
3535
3636 // NEW: no stored tutorial, must start new tutorial
3737 if ( ! tutorial || ! tutorial . id ) {
38- if ( ! ! TUTORIAL_URL ) {
39- // NEW_FROM_URL
38+ if ( TUTORIAL_URL ) {
39+ // if a tutorial URL is added, launch on startup
4040 try {
4141 const tutorialRes = await fetch ( TUTORIAL_URL )
4242 const tutorial = await tutorialRes . json ( )
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export const readFile = (...paths: string[]): Promise<string | void> => {
4141
4242export const writeFile = ( data : any , ...paths : string [ ] ) : Promise < void > => {
4343 const filePath = getWorkspacePath ( ...paths )
44- return asyncWriteFile ( filePath , JSON . stringify ( data ) ) . catch ( ( err ) => {
44+ return asyncWriteFile ( filePath , data ) . catch ( ( err ) => {
4545 console . warn ( `Failed to write to ${ filePath } : ${ err . message } ` )
4646 } )
4747}
You can’t perform that action at this time.
0 commit comments