Вернуть карту и изображения в печать
This commit is contained in:
@@ -24,6 +24,10 @@
|
||||
element.classList.add('bg-loaded');
|
||||
};
|
||||
|
||||
window.addEventListener('beforeprint', () => {
|
||||
document.querySelectorAll('[data-bg]').forEach(loadBackground);
|
||||
});
|
||||
|
||||
if ('IntersectionObserver' in window) {
|
||||
const backgroundObserver = new IntersectionObserver((entries, observer) => {
|
||||
entries.forEach((entry) => {
|
||||
|
||||
Reference in New Issue
Block a user