acweb icon indicating copy to clipboard operation
acweb copied to clipboard

Config import not working

Open cheesegrits opened this issue 5 years ago • 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?

cheesegrits avatar Apr 17 '19 07:04 cheesegrits

@venyii might know what this means?

Kugelschieber avatar Apr 19 '19 11:04 Kugelschieber

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

vntw avatar Apr 19 '19 13:04 vntw

I'll do that and publish a new version.

Kugelschieber avatar Apr 19 '19 18:04 Kugelschieber