Skip to content

Commit f1bdd84

Browse files
lukebakkenmergify[bot]
authored andcommitted
Remove unused Javascript functions
A security scanner flagged the use of `RegExp` with unsanitized input. Turns out, these functions are no longer used and can be deleted. (cherry picked from commit 61b0f15)
1 parent 8bc760e commit f1bdd84

File tree

1 file changed

+0
-9
lines changed
  • deps/rabbitmq_management/priv/www/js

1 file changed

+0
-9
lines changed

deps/rabbitmq_management/priv/www/js/main.js

-9
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,6 @@ function dispatcher() {
8181
}
8282
}
8383

84-
function getParameterByName(name) {
85-
var match = RegExp('[#&]' + name + '=([^&]*)').exec(window.location.hash);
86-
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
87-
}
88-
89-
function getAccessToken() {
90-
return getParameterByName('access_token');
91-
}
92-
9384
function start_app_login () {
9485
app = new Sammy.Application(function () {
9586
this.get('/', function () {})

0 commit comments

Comments
 (0)