nested pipes

This commit is contained in:
Shaun Johnston
2025-12-28 06:57:23 +10:00
parent 37afd4be0c
commit a5bb890067
3 changed files with 31 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
# Config file (use config.js.example as template)
js/config.js
# Python
__pycache__/
*.py[cod]
*$py.class
# IDE
.vscode/
.idea/
# OS
.DS_Store
Thumbs.db
+2
View File
@@ -1,4 +1,6 @@
// Configuration for Friendly Pipe extension
// Copy this file to config.js and modify as needed
export const config = {
// Set to true to enable debug logging in the browser console
debug: false,
+14 -1
View File
@@ -1,5 +1,18 @@
import { app } from "../../scripts/app.js";
import { config } from "./config.js";
// Default configuration
const defaultConfig = {
debug: false,
};
// Try to load config, fall back to defaults if not found
let config = defaultConfig;
try {
const configModule = await import("./config.js");
config = { ...defaultConfig, ...configModule.config };
} catch (e) {
// config.js doesn't exist, use defaults
}
// Debug logging helper
function debugLog(...args) {