Skip to content

Commit 992af02

Browse files
committed
Fix code scan warnings
1 parent 49ca772 commit 992af02

2 files changed

Lines changed: 1 addition & 19 deletions

File tree

OpenFlow/src/public/Controllers.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2131,24 +2131,6 @@ export class FormCtrl extends entityCtrl<WorkflowInstance> {
21312131
});
21322132
return emptyStr;
21332133
}
2134-
const replaceElem = function (targetId, replaceWith) {
2135-
$(targetId).each(function () {
2136-
const attributes = concatHashToString(this.attributes);
2137-
const replacingStartTag = '<' + replaceWith + attributes + '>';
2138-
const replacingEndTag = '</' + replaceWith + '>';
2139-
$(this).replaceWith(replacingStartTag + $(this).html() + replacingEndTag);
2140-
});
2141-
}
2142-
const replaceElementTag = function (targetSelector, newTagString) {
2143-
$(targetSelector).each(function () {
2144-
const newElem = $(newTagString, { html: $(this).html() });
2145-
$.each(this.attributes, function () {
2146-
newElem.attr(this.name, this.value);
2147-
});
2148-
$(this).replaceWith(newElem);
2149-
});
2150-
}
2151-
21522134
setTimeout(() => {
21532135
console.debug("Attach buttons! 2");
21542136
$('button[type="button"]').each(function () {

OpenFlow/src/public/Provider.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ <h1 class="pagetitle" translate lib="web">provider</h1>
7777
<div class="col-sm-4">
7878
<pre>https://{{ctrl.WebSocketClientService.domain}}/{{ctrl.model.id}}/FederationMetadata/2007-06/FederationMetadata.xml</pre>
7979
<a ng-href="https://{{ctrl.WebSocketClientService.domain}}/{{ctrl.model.id}}/FederationMetadata/2007-06/FederationMetadata.xml"
80-
target="_blank">test</a>
80+
target="_blank" rel="noreferrer">test</a>
8181
</div>
8282
</div>
8383

0 commit comments

Comments
 (0)