We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4c120d commit 6191620Copy full SHA for 6191620
html/classhelper.js
@@ -895,6 +895,16 @@ class ClassHelper extends HTMLElement {
895
const doc = event.target;
896
const body = doc.body;
897
898
+ const itemDesignator = window.location.pathname.split("/").at(-1);
899
+ let title = `${itemDesignator} - Classhelper`;
900
+
901
+ if (props.formProperty) {
902
+ const label = document.getElementsByName(props.formProperty).item(0).parentElement.previousElementSibling;
903
+ title = label.textContent + " - " + title;
904
+ }
905
906
+ doc.title = title;
907
908
// Add external classhelper stylesheet to head
909
const styleSheet = doc.createElement("link");
910
styleSheet.rel = "stylesheet";
0 commit comments