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

Function injectStyles

scripts/notifications.js:169–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167
168 // --- Initialization ---
169 function injectStyles() {
170 if (!document.getElementById('ds-toast-styles')) {
171 const styleSheet = document.createElement('style');
172 styleSheet.id = 'ds-toast-styles';
173 styleSheet.textContent = styles;
174 document.head.appendChild(styleSheet);
175 }
176 }
177
178 function getContainer() {
179 let container = document.querySelector('.ds-toast-container');

Callers 1

showToastNotificationFunction · 0.85

Calls 1

appendChildMethod · 0.45

Tested by

no test coverage detected