I have some constants in my extension that need to be accessed by both the popup script and the background script. Right now I'm duplicating these declarations in both.
I know I can pass messages between the scripts, but that would obviously be nonsensical - this is purely static information, and I merely want to avoid potential errors from having two sources of truth.
Is there any way to make static declarations in a place that all different parts of a Chrome extension have read access to? Or is there a different way this should be handled?