mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: reloading page at Apps/* causing black-screen
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
5040a4354b
commit
684c1ed068
@ -56,9 +56,8 @@ export class App extends React.Component {
|
|||||||
|
|
||||||
disposeOnUnmount(this, [
|
disposeOnUnmount(this, [
|
||||||
reaction(() => this.startURL, url => {
|
reaction(() => this.startURL, url => {
|
||||||
if (!this.clusterReady) {
|
const redirect = !this.clusterReady || !clusterStore.hasClusters();
|
||||||
navigation.replace(url);
|
if (redirect) navigation.replace(url);
|
||||||
}
|
|
||||||
}, {
|
}, {
|
||||||
fireImmediately: true
|
fireImmediately: true
|
||||||
})
|
})
|
||||||
|
|||||||
@ -18,6 +18,7 @@ export default function (): webpack.Configuration {
|
|||||||
[appName]: path.resolve(rendererDir, "index.tsx"),
|
[appName]: path.resolve(rendererDir, "index.tsx"),
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
|
publicPath: "/",
|
||||||
path: outDir,
|
path: outDir,
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
chunkFilename: 'chunks/[name].js',
|
chunkFilename: 'chunks/[name].js',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user