MCPcopy Create free account
hub / github.com/Yorick-Ryu/deep-share / getContainer

Function getContainer

scripts/notifications.js:178–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176 }
177
178 function getContainer() {
179 let container = document.querySelector('.ds-toast-container');
180 if (!container) {
181 container = document.createElement('div');
182 container.className = 'ds-toast-container';
183 document.body.appendChild(container);
184 }
185 return container;
186 }
187
188 // --- Core Function ---
189 function showToastNotification(message, type = 'success', duration = 3000) {

Callers 1

showToastNotificationFunction · 0.85

Calls 1

appendChildMethod · 0.45

Tested by

no test coverage detected