diff --git a/lib/ai/renderer.js b/lib/ai/renderer.js index 3a9f8cf..cbab782 100644 --- a/lib/ai/renderer.js +++ b/lib/ai/renderer.js @@ -42,7 +42,7 @@ class Renderer { height: Math.ceil(rect.height), }); - const tempDir = path.join(process.cwd(), 'temp', 'html'); + const tempDir = path.join(process.cwd(), 'temp', 'html','crystelf-plugin'); if (!fs.existsSync(tempDir)) fs.mkdirSync(tempDir, { recursive: true }); const filepath = path.join(tempDir, `code_${Date.now()}.png`); @@ -79,7 +79,7 @@ class Renderer { height: Math.min(rect.height, 3000), deviceScaleFactor: 2, }); - const tempDir = path.join(process.cwd(), 'temp', 'html'); + const tempDir = path.join(process.cwd(), 'temp', 'html','crystelf-plugin'); if (!fs.existsSync(tempDir)) fs.mkdirSync(tempDir, { recursive: true }); const filepath = path.join(tempDir, `markdown_${Date.now()}.png`); diff --git a/lib/music/musicRenderer.js b/lib/music/musicRenderer.js index 4051c78..73a4b4c 100644 --- a/lib/music/musicRenderer.js +++ b/lib/music/musicRenderer.js @@ -8,7 +8,7 @@ const __dirname = path.dirname(__filename); class MusicRenderer { constructor() { - this.tempDir = path.join(__dirname, '..', '..','..','..', 'temp'); + this.tempDir = path.join(__dirname, '..', '..','..','..', 'temp','crystelf-plugin','music'); this.browser = null; }