From cba395325d92369ce8676f7bd5effb0cede90d53 Mon Sep 17 00:00:00 2001 From: ayunami2000 Date: Mon, 24 Jan 2022 02:42:26 -0500 Subject: [PATCH] help firefox users --- javascript/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/index.html b/javascript/index.html index 1e8b3ca..6a682af 100644 --- a/javascript/index.html +++ b/javascript/index.html @@ -35,7 +35,7 @@ function simulateKey (key, type) { document.dispatchEvent(event); } -if(window.navigator.clipboard&&window.isSecureContext){ +if(window.navigator.clipboard&&window.isSecureContext&&navigator.userAgent.toLowerCase().indexOf('firefox')==-1){ window.addEventListener("keydown",function(e){ if((e.ctrlKey||e.metaKey)&&e.keyCode==86&&!e.altKey){ window.navigator.clipboard.readText().then(clipdata=>{