slightly less broken electron build
This commit is contained in:
parent
9820f85cb3
commit
87314d7eb8
4 changed files with 6 additions and 4 deletions
|
@ -30,7 +30,7 @@
|
||||||
"run:web": "cross-env NODE_ENV=production yarn compile:web && node ./dist/web/server.js",
|
"run:web": "cross-env NODE_ENV=production yarn compile:web && node ./dist/web/server.js",
|
||||||
"pack": "electron-builder --dir",
|
"pack": "electron-builder --dir",
|
||||||
"dist": "electron-builder",
|
"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",
|
"build:dir": "yarn build -- --dir -c.compression=store -c.mac.identity=null",
|
||||||
"lint": "eslint 'src/**/*.{js,jsx}' --fix && flow",
|
"lint": "eslint 'src/**/*.{js,jsx}' --fix && flow",
|
||||||
"format": "prettier 'src/**/*.{js,jsx,scss,json}' --write",
|
"format": "prettier 'src/**/*.{js,jsx,scss,json}' --write",
|
||||||
|
|
|
@ -28,7 +28,9 @@ const ScrollHandler = props => {
|
||||||
// This shouldn't scroll to top when you click "back"
|
// 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
|
// Might take some more work but fixes scroll position being stuck on navigation for now
|
||||||
const main = document.querySelector('main');
|
const main = document.querySelector('main');
|
||||||
main.scrollIntoView();
|
if (main) {
|
||||||
|
main.scrollIntoView();
|
||||||
|
}
|
||||||
}, [key]);
|
}, [key]);
|
||||||
|
|
||||||
return props.children;
|
return props.children;
|
||||||
|
|
|
@ -28,7 +28,7 @@ export default class extends React.PureComponent<Props> {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="yrbl__wrap">
|
<div className="yrbl__wrap">
|
||||||
<img alt="Friendly gerbil" className={classnames('yrbl', className)} src={`/${image}`} />
|
<img alt="Friendly gerbil" className={classnames('yrbl', className)} src={`${image}`} />
|
||||||
{title && subtitle && (
|
{title && subtitle && (
|
||||||
<div className="yrbl__content">
|
<div className="yrbl__content">
|
||||||
<h2 className="card__title">{title}</h2>
|
<h2 className="card__title">{title}</h2>
|
||||||
|
|
|
@ -7,6 +7,6 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script type="text/javascript" src="/ui.js"></script>
|
<script type="text/javascript" src="ui.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue