Fix Copy selector button being appended under reaction buttons

This commit is contained in:
radiden 2021-05-13 00:23:17 +02:00
parent b0ee318ebc
commit bf55c1f586
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 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>`); const cmg = DOM.createElement(`<div role="group"></div>`);
/** /**
* @type {HTMLElement} * @type {HTMLElement}