diff --git a/components/Meta.js b/components/Meta.js index 96ad3fc..d3cac41 100644 --- a/components/Meta.js +++ b/components/Meta.js @@ -21,7 +21,7 @@ export default () => ( { THEMES.map((theme, i) => ( - + )) } diff --git a/pages/editor.js b/pages/editor.js index 1bfb4e6..d60dbe0 100644 --- a/pages/editor.js +++ b/pages/editor.js @@ -27,7 +27,8 @@ class Editor extends React.Component { /* pathname, asPath, err, req, res */ static async getInitialProps ({ asPath }) { try { - if (asPath !== '/') { + // TODO make this check generic + if (asPath && asPath !== '/' && asPath !== '/favicon.ico') { const content = await api.getGist(asPath) return { content } }