diff --git a/web/js/pqueue.ui.core.js b/web/js/pqueue.ui.core.js index edb53af..51fc3f4 100644 --- a/web/js/pqueue.ui.core.js +++ b/web/js/pqueue.ui.core.js @@ -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"; }; diff --git a/web/js/pqueue.ui.js b/web/js/pqueue.ui.js index e6cfc0f..ce90177 100644 --- a/web/js/pqueue.ui.js +++ b/web/js/pqueue.ui.js @@ -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"; },