From a00d8aa2fb920f266cc5469059cf7717637e64b2 Mon Sep 17 00:00:00 2001 From: zhou qing Date: Mon, 21 Dec 2020 00:00:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=AC=AC=E4=B8=80=E6=AC=A1=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E6=B2=A1=E5=88=9B=E5=BB=BA=E4=B8=B4=E6=97=B6=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index a483d7a..d1dbc30 100644 --- a/main.js +++ b/main.js @@ -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);