diff --git a/pages/editor.js b/pages/editor.js index b97a913..f3cf083 100644 --- a/pages/editor.js +++ b/pages/editor.js @@ -32,7 +32,7 @@ class Editor extends React.Component { static async getInitialProps({ asPath }) { try { // TODO fix this hack - if (asPath.length > 30) { + if (asPath.length >= 20 && asPath.indexOf('.') === -1) { const content = await api.getGist(asPath) return { content } }