Update 1.js
This commit is contained in:
+1
-1
@@ -316,7 +316,7 @@ observer.observe(skillsDiv);
|
|||||||
const disabledKeys = ["c", "C", "x", "J", "u", "I"]; // keys that will be disabled
|
const disabledKeys = ["c", "C", "x", "J", "u", "I"]; // keys that will be disabled
|
||||||
const showAlert = e => {
|
const showAlert = e => {
|
||||||
e.preventDefault(); // preventing its default behaviour
|
e.preventDefault(); // preventing its default behaviour
|
||||||
return alert("Sorry, you can't view or copy source codes this way!");
|
return alert("Üzgünüz, kaynak kodlarını bu şekilde görüntüleyemez veya kopyalayamazsınız!");
|
||||||
}
|
}
|
||||||
document.addEventListener("contextmenu", e => {
|
document.addEventListener("contextmenu", e => {
|
||||||
showAlert(e); // calling showAlert() function on mouse right click
|
showAlert(e); // calling showAlert() function on mouse right click
|
||||||
|
|||||||
Reference in New Issue
Block a user