mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-03 01:16:14 +03:00
Fix order of changing directory back after compiling elm code.
This commit is contained in:
parent
8aff334828
commit
61e3a26c0f
@ -11,8 +11,8 @@ function runElm(callback) {
|
||||
const app = Elm.Main.init({ flags: { imageAssets: {} } });
|
||||
|
||||
app.ports.toJsPort.subscribe(payload => {
|
||||
callback(payload);
|
||||
process.chdir(startingDir);
|
||||
callback(payload);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user