assetto-corsa-web / acweb

Assetto Corsa Server Management Tool via Web Interface.
MIT License
58 stars 9 forks source link

Config import not working #65

Open cheesegrits opened 5 years ago

cheesegrits commented 5 years ago

When trying to import a config from server and entry ini files, I get ...

Uncaught ReferenceError: sToB is not defined

... in checkImportableConfigs().

It looks like the build has created some invalid syntax out of that sToB closure?

Kugelschieber commented 5 years ago

@venyii might know what this means?

vntw commented 5 years ago

Hey, I haven't used this project for a while, but taking a look at the code I'd assume properly declaring the sToB variable (var sToB = ...) might prevent webpack (or whoever does it) from removing it

https://github.com/assetto-corsa-web/acweb/blob/7bfa1708e83fd8436982d95636f449b4afc3a2a1/public/src/pages/configuration.vue#L1152

Kugelschieber commented 5 years ago

I'll do that and publish a new version.