6 Commits
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
[project] [project]
name = "ComfyUI-PechaKucha" name = "ComfyUI-PechaKucha"
description = "Nodes to generate a pecha-kucha presentation in ComfyUI" description = "Nodes to generate a pecha-kucha presentation in ComfyUI"
version = "1.0.1" version = "1.1.2"
license = { file = "LICENSE" } license = { file = "LICENSE" }
dependencies = ["python-pptx >= 1.0.2"] dependencies = ["python-pptx >= 1.0.2"]
+2 -2
View File
@@ -1,4 +1,4 @@
import { app } from "/scripts/app.js"; import { app } from "../../../scripts/app.js";
app.registerExtension({ app.registerExtension({
name: "pecha_kucha.DownloadPechaKucha", name: "pecha_kucha.DownloadPechaKucha",
@@ -51,7 +51,7 @@ app.registerExtension({
const folderName = cleanFilePath.replace(/[^\\/]+$/, ""); const folderName = cleanFilePath.replace(/[^\\/]+$/, "");
const fileNameMatch = cleanFilePath.match(/[^\\/]+$/); const fileNameMatch = cleanFilePath.match(/[^\\/]+$/);
const fileName = fileNameMatch ? fileNameMatch[0] : ""; const fileName = fileNameMatch ? fileNameMatch[0] : "";
const viewUrl = `/api/view?subfolder=${encodeURIComponent(folderName)}&filename=${encodeURIComponent(fileName)}&type=output`; const viewUrl = `api/view?subfolder=${encodeURIComponent(folderName)}&filename=${encodeURIComponent(fileName)}&type=output`;
// Open the presentation in a new tab // Open the presentation in a new tab
window.open(viewUrl, "_blank"); window.open(viewUrl, "_blank");