jkeller
December 13th, 2025, 01:42
What is the "best practice" for how extensions should use options?
I generally try to register the option on the host, but I just realized the code that checks the option may be running on a client. So, if I want to have an on/off option to disable (or otherwise affect the behavior of my extension), do I need to always register the option (regardless of host or client)?
And if so, how do I protect it such that it can only be changed on the host?
And if it's changed on the host, is it changed on the clients too?
Thanks!
I generally try to register the option on the host, but I just realized the code that checks the option may be running on a client. So, if I want to have an on/off option to disable (or otherwise affect the behavior of my extension), do I need to always register the option (regardless of host or client)?
And if so, how do I protect it such that it can only be changed on the host?
And if it's changed on the host, is it changed on the clients too?
Thanks!