j4k0xb / webcrack

Deobfuscate obfuscator.io, unminify and unpack bundled javascript
https://webcrack.netlify.app
MIT License
873 stars 100 forks source link

Cannot move to file clicked in playground #40

Closed pionxzh closed 9 months ago

pionxzh commented 9 months ago

Describe the bug

When I tried playing with the playground, it successfully generated some modules. But when I clicked on files on the left panel, the playground failed to navigate / open the file. I got stuck on the input file.

System: Windows 11 Browser: Chrome 120.0.6099.129

Expected Behaviour

Can click and see the generated file.

Code

NA

Logs

image

j4k0xb commented 9 months ago

Thanks for reporting, gonna prioritize getting this fixed because it makes unpacking in the playground pretty useless (with no way to downloading either as of now) 😅

I've only tested on Linux so far, but the path polyfill and browsers in general should never use backslashes like in windows

j4k0xb commented 9 months ago

Should work now monaco-editor used different path formats for windows user-agents: https://github.com/microsoft/vscode/blob/83b909c39f0ce5368d3a41a30c609de86a2e106e/src/vs/base/common/uri.ts#L638-L640

pionxzh commented 9 months ago

It works now, Thanks!