Skip to content

Commit

Permalink
fix:第一次运行没创建临时目录的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou qing authored and zhou qing committed Dec 20, 2020
1 parent 50d6af4 commit a00d8aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export default class MonkeyMaster {

try {
cookieText = Deno.readTextFileSync(this.userPath + 'data');
} catch (error) {}
} catch (error) {
Deno.mkdirSync(this.userPath);
}

if (cookieText) {
this.headers.set('Cookie', cookieText);
Expand Down

1 comment on commit a00d8aa

@qiin2333
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#4

Please sign in to comment.