()
| 2725 | console.log("Extension message listener added."); |
| 2726 | } |
| 2727 | function updateDisplayedVersion() { |
| 2728 | if (!UI.settingsVersion) return; |
| 2729 | try { |
| 2730 | UI.settingsVersion.textContent = |
| 2731 | chrome.runtime.getManifest?.()?.version || UI.settingsVersion.textContent; |
| 2732 | } catch (error) { |
| 2733 | console.warn("Could not read extension manifest version:", error); |
| 2734 | } |
| 2735 | } |
| 2736 | async function initialize() { |
| 2737 | if (initializeHasRun) { |
| 2738 | return; |