+
+ let fixVersionControl = () =>
+ {
+ let elToFix;
+ let found = document.getElementsByClassName("changeset-version")[0];
+ if (found) {
+ // if opened from email notification it is the first span in div "changeset-version"
+ elToFix = found.querySelector("span");
+ }
+ else
+ {
+ // if opened from histrory in ads it is the span in div "changeset-id"
+ // elToFix = document.getElementsByClassName("changeset-id")[0];
+ }
+ if (!elToFix)
+ {
+ return;
+ }
+
+ elToFix.innerHTML = elToFix.innerHTML.replace(/(Changeset )(\d+)/, "$1<a href='/HeBa/Entwicklung/_versionControl/changeset/$2'>$2</a>");
+
+ }
+