help firefox users

This commit is contained in:
ayunami2000 2022-01-24 02:42:26 -05:00
parent da87df7f1e
commit cba395325d

View File

@ -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=>{