| @@ -91,9 +91,9 @@ | ||
| 91 | 91 | elementor.hooks.addAction('panel/close_editor', function() { |
| 92 | 92 | observer.disconnect(); |
| 93 | 93 | }); |
| 94 | 94 | } catch (error) { |
| 95 | - console.error('Error when setting up observer:', error); | |
| 95 | + // console.error('Error when setting up observer:', error); | |
| 96 | 96 | } |
| 97 | 97 | } |
| 98 | 98 | }); |
| 99 | 99 | |
| @@ -337,14 +337,14 @@ | ||
| 337 | 337 | } |
| 338 | 338 | `; |
| 339 | 339 | document.head.appendChild(style); |
| 340 | 340 | } catch (styleError) { |
| 341 | - console.error('Error when adding styles:', styleError); | |
| 341 | + // console.error('Error when adding styles:', styleError); | |
| 342 | 342 | } |
| 343 | 343 | } |
| 344 | 344 | |
| 345 | 345 | $(window).on('elementor:init', function() { |
| 346 | - console.log('elementor:init event fired for mega menu editor'); | |
| 346 | + // console.log('elementor:init event fired for mega menu editor'); | |
| 347 | 347 | const panelEl = document.getElementById('elementor-panel'); |
| 348 | 348 | |
| 349 | 349 | // Watch for newly-added .king-addons-pro-control elements |
| 350 | 350 | const observer = new MutationObserver(function(mutations) { |
| @@ -435,9 +435,9 @@ | ||
| 435 | 435 | copyBtn.textContent = 'Copy'; |
| 436 | 436 | copyBtn.classList.remove('copied'); |
| 437 | 437 | }, 2000); |
| 438 | 438 | }).catch(err => { |
| 439 | - console.error('Error copying email:', err); | |
| 439 | + // console.error('Error copying email:', err); | |
| 440 | 440 | alert('Failed to copy email address.'); |
| 441 | 441 | }); |
| 442 | 442 | }); |
| 443 | 443 | |