Lock any HTML DOM Element 🔐
This script detects attempts to modify your HTML structure and content. It disables changes from internal or external sources (like Devtools).
Your Application HTML can be modified by scammers and or third party scripts.
I wanted to create simple script that locks safely your application HTML making it immutable.
npm i immutable-dom
import {lock} from 'immutable-dom'
// your application html can be no longer modified
const unlock = lock(document.documentElement)
// unlock your application
unlock()
- [] Add unit test