mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
remove createHashHistory from the history sink
This commit is contained in:
@@ -61,7 +61,7 @@ function bar() {
|
||||
history.push(payload); // NOT OK
|
||||
}
|
||||
function baz() {
|
||||
const history = require('history').createHashHistory();
|
||||
const history = require('history').createBrowserHistory();
|
||||
var payload = history.location.hash.substr(1);
|
||||
|
||||
history.replace(payload); // NOT OK
|
||||
|
||||
Reference in New Issue
Block a user