diff --git a/package.json b/package.json index 717496e30..49ae1ada2 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "run:web": "cross-env NODE_ENV=production yarn compile:web && node ./dist/web/server.js", "pack": "electron-builder --dir", "dist": "electron-builder", - "build": "yarn compile && electron-builder build", + "build": "cross-env NODE_ENV=production yarn compile:electron && electron-builder build", "build:dir": "yarn build -- --dir -c.compression=store -c.mac.identity=null", "lint": "eslint 'src/**/*.{js,jsx}' --fix && flow", "format": "prettier 'src/**/*.{js,jsx,scss,json}' --write", diff --git a/src/ui/component/router/view.jsx b/src/ui/component/router/view.jsx index 15289bc74..6569c2f18 100644 --- a/src/ui/component/router/view.jsx +++ b/src/ui/component/router/view.jsx @@ -28,7 +28,9 @@ const ScrollHandler = props => { // This shouldn't scroll to top when you click "back" // Might take some more work but fixes scroll position being stuck on navigation for now const main = document.querySelector('main'); - main.scrollIntoView(); + if (main) { + main.scrollIntoView(); + } }, [key]); return props.children; diff --git a/src/ui/component/yrbl/index.jsx b/src/ui/component/yrbl/index.jsx index a2ba9bd2b..50b06399f 100644 --- a/src/ui/component/yrbl/index.jsx +++ b/src/ui/component/yrbl/index.jsx @@ -28,7 +28,7 @@ export default class extends React.PureComponent { return (
- Friendly gerbil + Friendly gerbil {title && subtitle && (

{title}

diff --git a/static/index.html b/static/index.html index 468ad045e..b31d55a93 100644 --- a/static/index.html +++ b/static/index.html @@ -7,6 +7,6 @@
- +