kylepaulsen / ResourceOverride

An extension to help you gain full control of any website by redirecting traffic, replacing, editing, or inserting new content.
MIT License
467 stars 117 forks source link

Add support for async / await syntax on the javascript editor #36

Open lcrespilho opened 4 years ago

lcrespilho commented 4 years ago

Hi Kyle. Thanks a lot for the extension. It's amazing. :)

Can you please add support for the async/await syntax sugar on the javascript code editor? If one clicks "Beautify JS" on the code editor the code is formatted in a way that the code breaks. For example:

code before beautification:

async function foo() {}

code after beautification:

async
function foo() {}

The resulted javascript breaks when injected.

Thanks a lot.