nested pipes
This commit is contained in:
+15
@@ -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
|
||||
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user