onChange value of system preference

I developed a addon who need know when some preference of system changed, because i modify the value but when a event occurs, this preference, reset by default, i tried to listen this change with the method “on” in (simple-pref mod) but this only works with my preference or the preference created for my addon, I need know when some preference of the system changed or reset his value by default.

Thanks in advance

I think we also talked about this in a different forum, but I’ll respond here anyway. For your use case, the best solution is just to use require(“chrome”) to use the Preference Service and its preference observers.