Revert "Run lint on travis builds and use modern node versions"

This commit is contained in:
David Baker 2018-11-22 18:17:09 +00:00 committed by GitHub
parent a7a5679bfa
commit f701e2601a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 180 additions and 389 deletions

View file

@ -23,16 +23,16 @@ import qs from 'querystring';
export function parseQsFromFragment(location) {
// if we have a fragment, it will start with '#', which we need to drop.
// (if we don't, this will return '').
const fragment = location.hash.substring(1);
var fragment = location.hash.substring(1);
// our fragment may contain a query-param-like section. we need to fish
// this out *before* URI-decoding because the params may contain ? and &
// characters which are only URI-encoded once.
const hashparts = fragment.split('?');
var hashparts = fragment.split('?');
const result = {
var result = {
location: decodeURIComponent(hashparts[0]),
params: {},
params: {}
};
if (hashparts.length > 1) {