mirror of
https://github.com/EndPwnArchive/EndPwn3Plugins.git
synced 2024-08-14 23:57:06 +00:00
fixes i forgot
This commit is contained in:
parent
98524a3c20
commit
9070d97d6d
2 changed files with 3 additions and 4 deletions
|
@ -6,8 +6,7 @@ exports.manifest = {
|
|||
exports.start = function(){
|
||||
document.addEventListener("dblclick", ev => {
|
||||
let target = ev.target;
|
||||
console.log(target);
|
||||
if(target && target.className && (target.className.includes("markup") || target.className.includes("hljs") || targe.className.includes("inline"))) {
|
||||
if(target && target.className && (target.className.includes("markup") || target.className.includes("hljs") || target.className.includes("inline"))) {
|
||||
let msg = target;
|
||||
if(!ev.ctrlKey){
|
||||
let opt = msg.parentNode.parentNode.className.includes("markup") ? msg.parentNode.parentNode.parentNode.querySelector(".btn-option") : msg.parentNode.querySelector(".btn-option");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue