|
@@ -235,7 +235,10 @@ function _addIframe() {
|
|
// shadowRoot.appendChild(iframe);
|
|
// shadowRoot.appendChild(iframe);
|
|
// document.body.appendChild(span)
|
|
// document.body.appendChild(span)
|
|
dom.iframe = iframe;
|
|
dom.iframe = iframe;
|
|
- document.getElementById('layers').appendChild(iframe)
|
|
|
|
|
|
+ let iframeContent = document.getElementById('iframe-content');
|
|
|
|
+ if(!iframeContent) {
|
|
|
|
+ document.getElementById('layers').appendChild(iframe);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -377,12 +380,14 @@ function _createBtnDom(port) {
|
|
function addSliderNavDeBtn(isSmall = false) {
|
|
function addSliderNavDeBtn(isSmall = false) {
|
|
if (!isSmall) {
|
|
if (!isSmall) {
|
|
let bigDom = document.querySelector('h1[role]').parentNode.parentNode;
|
|
let bigDom = document.querySelector('h1[role]').parentNode.parentNode;
|
|
- if (bigDom) {
|
|
|
|
|
|
+ let deBtn = document.getElementById('de-btn');
|
|
|
|
+ if (bigDom && !deBtn) {
|
|
bigDom.appendChild(dom.deBtn);
|
|
bigDom.appendChild(dom.deBtn);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
let smallDom = document.querySelector('h1[role]').parentNode.parentNode;
|
|
let smallDom = document.querySelector('h1[role]').parentNode.parentNode;
|
|
- if (smallDom) {
|
|
|
|
|
|
+ let deBtn3 = document.getElementById('de-btn3');
|
|
|
|
+ if (smallDom && !deBtn3) {
|
|
smallDom.appendChild(dom.deBtn3);
|
|
smallDom.appendChild(dom.deBtn3);
|
|
}
|
|
}
|
|
}
|
|
}
|