Skip to content

Commit

Permalink
show terminate state
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanoHao committed May 7, 2022
1 parent 667218b commit 8a8adf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
</head>

<body>

<main class="container-xxl">
<div class="row my-1 mx-n1 live-preview">
<div class="col-12 px-1 py-1 col-lg-6">
Expand Down Expand Up @@ -199,6 +198,7 @@ <h2 class="card-title mb-2">月神镰刀</h2>

function terminateWorker() {
worker.terminate();
setStatus('warning', 'Terminated.', `已终止。`);
disableTerminateButton();
setupWorker();
enableRunButton();
Expand Down
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ module.exports = {
filename: './index.html',
inlineSource: '.(js)',
minify: {
collapseWhitespace: true,
minifyCSS: true,
minifyJS: true,
removeComments: true,
collapseWhitespace: true
},
chunks: ["index"]
}),
Expand Down

0 comments on commit 8a8adf3

Please sign in to comment.