mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-08 04:28:41 +00:00
Fix undefined devServer.app in screenshotter (#1085)
Fixes #1082, `TypeError: Cannot read property 'get' of undefined` on Docker for Mac.
This commit is contained in:
committed by
Kevin Barabash
parent
732f2a84cc
commit
d82424c618
@@ -196,10 +196,10 @@ function startServer() {
|
|||||||
}
|
}
|
||||||
const port = Math.floor(Math.random() * (maxPort - minPort)) + minPort;
|
const port = Math.floor(Math.random() * (maxPort - minPort)) + minPort;
|
||||||
const compiler = webpack(webpackConfig);
|
const compiler = webpack(webpackConfig);
|
||||||
const server = new webpackDevServer(compiler,
|
const wds = new webpackDevServer(compiler, webpackConfig[0].devServer);
|
||||||
webpackConfig[0].devServer).listen(port);
|
const server = wds.listen(port);
|
||||||
server.once("listening", function() {
|
server.once("listening", function() {
|
||||||
devServer = server;
|
devServer = wds;
|
||||||
katexPort = port;
|
katexPort = port;
|
||||||
attempts = 0;
|
attempts = 0;
|
||||||
process.nextTick(tryConnect);
|
process.nextTick(tryConnect);
|
||||||
|
Reference in New Issue
Block a user