Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Removed evt listeners on html element
Browse files Browse the repository at this point in the history
  • Loading branch information
rospino74 committed Nov 30, 2021
1 parent 8f26acd commit ae4c19d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/foreground/skuola/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ noRightClickElement.forEach((element) => {
removeListenersOfType(element, ['cut', 'copy', 'paste', 'contextmenu']);
});

// Also remove event listeners from the html element
removeListenersOfType(document.documentElement, ['cut', 'copy', 'paste', 'contextmenu']);

if (/^it\b/.test(navigator.language)) {
console.log('%cOra puoi copiare tutti i testi che vuoi 😉', consoleBigStyles);
} else {
Expand Down

0 comments on commit ae4c19d

Please sign in to comment.