
Security News
Security Community Slams MIT-linked Report Claiming AI Powers 80% of Ransomware
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.
@deleteagency/page-locker
Advanced tools
On opening a modal window you have to prevent your main page from scrolling, so generally you can just set "overflow: hidden" on document.documentElement, but it won't work with iOS devices, so there is a need for a little bit tricky way via using "position: fixed" and setting the scroll position. So we can just use two simple methods to lock and unlock a page.
Use the package manager npm for installation.
$ npm install @deleteagency/page-locker
html {
    &.is-blocked {
        overflow: hidden;
    }
    &.is-blocked-touch {
        position: fixed;
        overflow-y: scroll;
        width: 100%;
        height: auto;
    }
}
import { PageLocker } from  '@deleteagency/page-locker';
const pageLocker = new PageLocker();
pageLocker.lock('modal');
Required
Type: string
Required
Type: string
FAQs
[Live Demo](https://delete-agency.github.io/page-locker/)
The npm package @deleteagency/page-locker receives a total of 387 weekly downloads. As such, @deleteagency/page-locker popularity was classified as not popular.
We found that @deleteagency/page-locker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.