Skip to content

Commit 18f7559

Browse files
committed
printscreen bug solve
1 parent cdd7b94 commit 18f7559

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

dist/secure-web.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ function noScreenshot(options , overlayId) {
104104
event.preventDefault();
105105
}
106106
});
107+
document.addEventListener('keyup', (event) => {
108+
if (event.key === 'PrintScreen') {
109+
navigator.clipboard.writeText('')
110+
overlayScreen()
111+
}
112+
})
113+
107114
}
108115
if (disableFunctionKeys){
109116
document.addEventListener('keydown', event => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "secure-web",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Secure-Web is an npm package that prevents users from taking screenshots of your web page by securing it against various methods of screenshot capture. With customizable options to tailor the security measures according to your needs, Secure-Web ensures that your sensitive information remains protected and inaccessible to unauthorized individuals. Embrace the power of Secure-Web and take control of your online security today.",
55
"main": "old/secure-web.js",
66
"scripts": {

0 commit comments

Comments
 (0)