Merge pull request #260 from radiden/master

Fix Copy selector button being appended under reaction buttons
This commit is contained in:
JeanOUINA 2021-05-13 04:46:44 +02:00 committed by GitHub
commit 17044e4a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -95,7 +95,11 @@ export default new class DevMode {
}
const cmWrap = cm.parentElement
const scroller = cm.childNodes[0].childNodes[0]
if ([...cm.childNodes[0].childNodes].length > 1) {
var scroller = cm.childNodes[0].childNodes[1]
} else {
var scroller = cm.childNodes[0].childNodes[0]
}
const cmg = DOM.createElement(`<div role="group"></div>`);
/**
* @type {HTMLElement}