You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pEpForThunderbird/DEVELOPMENT.md

907 B

The window object

In bootstrap.js we subscribe to notifications from a ww service that calls a paint method when the window object is globally accessible as a global variable, for every open window.

From there we can pass it to all modules that want to access it. Outside of this context we cannot assume that window is accessible. An unpaint notification will be sent when the window is closed.

Updating the options

When we want to change the plugin preferences we can do so by modifying three areas in the code:

  • options.xul the markup, here you define the identifier for the option that will be used also elsewhere
  • prefsFactory.js update getter and setter functions corresponding to the option and the default value
  • options.js update addAll, the window load handler, the dialogAccept handler

Compat and Prefs

Are defined in options.js and globally available