@nine-lab/nine-mu 0.1.312 → 0.1.313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -84,14 +84,17 @@ export class NotificationHandler {
|
|
|
84
84
|
#openDiffPopup = () => {
|
|
85
85
|
if (this.#collectedFiles.length === 0) return;
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
$popup = document.createElement('nine-diff-popup');
|
|
91
|
-
$popup.setAttribute('package-name', this.#owner.getAttribute('package-name') || '');
|
|
92
|
-
document.body.appendChild($popup);
|
|
87
|
+
const oldPopup = this.shadowRoot.querySelector('nine-diff-popup');
|
|
88
|
+
if (oldPopup) {
|
|
89
|
+
oldPopup.remove();
|
|
93
90
|
}
|
|
94
91
|
|
|
92
|
+
// DOM 상에 싱글톤 팝업 인스턴스 레이아웃 추출 및 빌드
|
|
93
|
+
|
|
94
|
+
const $popup = document.createElement('nine-diff-popup');
|
|
95
|
+
$popup.setAttribute('package-name', this.#owner.getAttribute('package-name') || '');
|
|
96
|
+
document.body.appendChild($popup);
|
|
97
|
+
|
|
95
98
|
// 팝업 내부 맵 저장소에 수집된 멀티 탭 소스 리스트 주입 및 모달 디스플레이
|
|
96
99
|
$popup.data([...this.#collectedFiles]);
|
|
97
100
|
$popup.popup();
|