Commit c783d4f5 authored by Albin PETIT's avatar Albin PETIT Committed by Samir Noir
Browse files

Fix sonarqube errors

parent 226fe4fe
......@@ -4,7 +4,7 @@ var now = new Date().getTime()
var optionalize = function(search) {
var queryString = search.replace(/^.*\?/, '')
if ($("#link-to-self")) {
if ($("#link-to-self").length > 0) {
$("#link-to-self").val(window.location.href.replace(/\?.*$/, "?"+queryString))
}
var queryParameters = queryString.split(/&/)
......@@ -148,4 +148,4 @@ $(document).ready(function() {
return false;
})
})
\ No newline at end of file
})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment