Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8582bf9

Browse files
committed
remove additional stringification
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent63c8067 commit8582bf9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/actions/onStartup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
consttutorialRes=awaitfetch(TUTORIAL_URL)
4242
consttutorial=awaittutorialRes.json()

‎src/services/node/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const readFile = (...paths: string[]): Promise<string | void> => {
4141

4242
exportconstwriteFile=(data:any, ...paths:string[]):Promise<void>=>{
4343
constfilePath=getWorkspacePath(...paths)
44-
returnasyncWriteFile(filePath,JSON.stringify(data)).catch((err)=>{
44+
returnasyncWriteFile(filePath,data).catch((err)=>{
4545
console.warn(`Failed to write to${filePath}:${err.message}`)
4646
})
4747
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp