DEV Community

Discussion on: Locking javascript to a domain: Part I

Collapse
 
pero profile image
Pero

Interesting but I don't know if you could stop a determined mind from undoing everything. Also have tried adding wasm to the mix?

Collapse
 
bangkokian profile image
Bangkokian • Edited

There's no javascript security solution that is fullproof.

WASM is hard to use in this case since you can't access the DOM directly -- it's very difficult to conceal the error source.

Of course, if you write the whole application in WASM, that's a good route.

Collapse
 
pero profile image
Pero

You can write parts that do not require dom in wasm

Collapse
 
pero profile image
Pero

You can write parts that do not require dom in wasm. And parse in functions that perform dom operations as a callback