Skip to content

registerSave callback should run when setting is changed on another device #26

@tdulcet

Description

@tdulcet

The registerSave callback should run when a setting is changed on another browser instance or device, so that it could be automatically applied as suggested on the README:

It is thus quite useful to automatically apply the option or send it to other parts of the browser extension, so they are notified that a the value of the option changed. This is a useful feature for your usability, because the AutomaticSetings module automatically saves all options, so they should also automatically be applied, so the user immediately sees the difference.

Currently the user would need to manually restart their browser for any changes to take effect.

This library could use the storage.onChanged event or with Firefox/Thunderbird 101 or greater, the storage.sync.onChanged event and then call the respective registerSave callbacks based on the changes argument.

Note that syncing is not currently supported by Firefox for Android (Bug 1595822) or Thunderbird (Bug 1427501).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions