assetto-corsa-web/acweb

Config import not working

cheesegrits opened this issue · 3 comments

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?

@venyii might know what this means?

vntw commented

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

sToB = function (s) { return s === '1' };

I'll do that and publish a new version.