javascript-obfuscator / javascript-obfuscator-ui

A web UI to the JavaScript Obfuscator node.js package.
https://obfuscator.io
BSD 2-Clause "Simplified" License
230 stars 130 forks source link

https://obfuscator.io/ UI broken #53

Closed robly closed 4 years ago

robly commented 4 years ago

It looks like the drop down for 'String Array Encoding' was changed and is now broken.

Here is a screen shot and error message.

ReferenceError: Validation failed. errors: stringArrayEncoding errors:

2020-09-03_15-16-17

sanex3339 commented 4 years ago

Press 'resetOptions' and try again. Or clear your local storage on this site.

sanex3339 commented 4 years ago

Also before it, please past here the options that are stored inside your localStorage on this site.

In the latest version this option type was changed from the single string to the array of strings. But because all options are stored inside localStorage seems something goes wrong. I added sanitizer that converts the value, that are inserted from the localStorage, from the string to the array. But looks like i missed to cover some cases.

sanex3339 commented 4 years ago

Upd: i know the reason of this bug. Will update the web-ui in 5 minutes.

sanex3339 commented 4 years ago

Should be fixed now, just reload the page and your stringArrayOption will be reset to the default value none. Reopen this issue if this bug still exists.