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.
This commit is contained in:
parent
a1ec795184
commit
61b0f152fd
|
@ -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