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",
|
||||
"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",
|
||||
|
|
|
@ -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');
|
||||
if (main) {
|
||||
main.scrollIntoView();
|
||||
}
|
||||
}, [key]);
|
||||
|
||||
return props.children;
|
||||
|
|
|
@ -28,7 +28,7 @@ export default class extends React.PureComponent<Props> {
|
|||
|
||||
return (
|
||||
<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 && (
|
||||
<div className="yrbl__content">
|
||||
<h2 className="card__title">{title}</h2>
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="text/javascript" src="/ui.js"></script>
|
||||
<script type="text/javascript" src="ui.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue