|
@@ -1236,10 +1236,10 @@ export const showNFTSale = () => {
|
|
|
|
|
|
export const appendPopupPage = () => {
|
|
export const appendPopupPage = () => {
|
|
let iframe = document.createElement('iframe');
|
|
let iframe = document.createElement('iframe');
|
|
- iframe.id = 'de-extension-popup';
|
|
|
|
- iframe.src = chrome.runtime.getURL('/iframe/popup.html');
|
|
|
|
|
|
+ iframe.id = 'de-popup-page';
|
|
|
|
+ iframe.src = chrome.runtime.getURL('/iframe/popup-page.html');
|
|
iframe.style.cssText = `border: medium none; width: 375px;
|
|
iframe.style.cssText = `border: medium none; width: 375px;
|
|
- height: 600px;position: fixed; right: 16px; top: 16px;background: #FFFFFF;border: 0.5px solid #919191;box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);box-sizing: border-box;display: none`
|
|
|
|
|
|
+ height: 600px;position: fixed; right: 16px; top: 16px;background: #FFFFFF;border: 0.5px solid #919191;box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);box-sizing: border-box;display: none;z-index: 1000;`
|
|
let iframeContent = document.getElementById('de-extension-popup');
|
|
let iframeContent = document.getElementById('de-extension-popup');
|
|
if (!iframeContent) {
|
|
if (!iframeContent) {
|
|
document.querySelector('body').appendChild(iframe);
|
|
document.querySelector('body').appendChild(iframe);
|
|
@@ -1248,15 +1248,15 @@ export const appendPopupPage = () => {
|
|
|
|
|
|
export const showPopupPage = (params) => {
|
|
export const showPopupPage = (params) => {
|
|
let { path = '' } = params;
|
|
let { path = '' } = params;
|
|
- let iframe = document.getElementById('de-extension-popup');
|
|
|
|
|
|
+ let iframe = document.getElementById('de-popup-page');
|
|
if (iframe) {
|
|
if (iframe) {
|
|
- iframe.src = chrome.runtime.getURL('/iframe/popup.html') + `#${path}`;
|
|
|
|
|
|
+ iframe.src = chrome.runtime.getURL('/iframe/popup-page.html') + `#${path}`;
|
|
iframe.style.display = 'block';
|
|
iframe.style.display = 'block';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
export const hidePopupPage = () => {
|
|
export const hidePopupPage = () => {
|
|
- let iframe = document.getElementById('de-extension-popup');
|
|
|
|
|
|
+ let iframe = document.getElementById('de-popup-page');
|
|
if (iframe) {
|
|
if (iframe) {
|
|
iframe.style.display = 'none';
|
|
iframe.style.display = 'none';
|
|
}
|
|
}
|