Feat: Derive workflow label from current browser tab title

This commit is contained in:
Simon Cordt
2025-09-27 00:19:24 +02:00
parent dc4ad17968
commit bad99099f6
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -317,6 +317,11 @@
} catch (err) { /* ignore */ }
}
} catch (err) { /* ignore */ }
// Fallback: derive from current browser tab title
try {
const t = UI.getCurrentWorkflowNameFromTitle && UI.getCurrentWorkflowNameFromTitle();
if (t) return t;
} catch (err) { /* ignore */ }
return "Untitled workflow";
};
+4
View File
@@ -1496,6 +1496,10 @@
} catch (err) { /* ignore */ }
}
} catch (err) { /* ignore */ }
try {
const t = UI.getCurrentWorkflowNameFromTitle && UI.getCurrentWorkflowNameFromTitle();
if (t) return t;
} catch (err) { /* ignore */ }
return "Untitled workflow";
},