Fix order of changing directory back after compiling elm code.

This commit is contained in:
Dillon Kearns 2019-08-19 15:58:31 -07:00
parent 8aff334828
commit 61e3a26c0f

View File

@ -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);
});
});
}