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 61b0f152fd)
This commit is contained in:
parent
8bc760ece6
commit
f1bdd84e6c
|
|
@ -81,15 +81,6 @@ function dispatcher() {
|
|||
}
|
||||
}
|
||||
|
||||
function getParameterByName(name) {
|
||||
var match = RegExp('[#&]' + name + '=([^&]*)').exec(window.location.hash);
|
||||
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
|
||||
}
|
||||
|
||||
function getAccessToken() {
|
||||
return getParameterByName('access_token');
|
||||
}
|
||||
|
||||
function start_app_login () {
|
||||
app = new Sammy.Application(function () {
|
||||
this.get('/', function () {})
|
||||
|
|
|
|||
Loading…
Reference in New Issue