refactor: minor housekeeping

This commit is contained in:
Resi Respati 2017-12-21 00:21:15 +07:00
parent 6571d6742c
commit 9a7c4e28cb
3 changed files with 2 additions and 5 deletions

View File

@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<meta name="description" content="tildetv is an alternative way to enjoy visual media on the internet.">
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/

View File

@ -5,10 +5,9 @@ import { BrowserRouter } from 'react-router-dom';
import 'normalize.css';
import './styles/index.css';
import Root from './Root';
import getBaseUrl from './utils/getBaseUrl';
const wrapped = (
<BrowserRouter basename={getBaseUrl()}>
<BrowserRouter basename={process.env.PUBLIC_URL || null}>
<Root />
</BrowserRouter>
);

View File

@ -1,3 +0,0 @@
const getBaseUrl = () => process.env.PUBLIC_URL || undefined;
export default getBaseUrl;