formatting

This commit is contained in:
Michael Bradley, Jr 2018-10-24 14:45:22 -05:00
parent a594b14f27
commit 754266da17
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import {withRouter} from "react-router-dom";
import routes from '../routes';
import Login from '../components/Login';
import Layout from "../components/Layout";
import { DEFAULT_HOST } from '../constants';
import {DEFAULT_HOST} from '../constants';
import {getQueryToken, stripQueryToken} from '../utils/utils';
import {

View File

@ -18,7 +18,8 @@ export function hashCode(str) {
export function ansiToHtml(text) {
const convert = new Convert();
return convert.toHtml(text.replace(/\n/g,'<br>'))
return convert.toHtml(text.replace(/\n/g,'<br>'));
}
export function getQueryToken(location) {
return qs.parse(location.search, {ignoreQueryPrefix: true}).token;