0

When calling browser.i18n.getMessage('myKey') in a Firefox WebExtension, an exception is shown in the background Console if 'myKey' does not exist:

   Unknown localization message myKey

In Chrome, it fails silently and returns an empty string.

At other times, I find that it returns a string of ??. This is not the same as Chome.

Glen Little
  • 6,951
  • 4
  • 46
  • 68

1 Answers1

0

This was opened as a bug here, with further discussion here. It looks like it will be fixed to return an empty string.

Glen Little
  • 6,951
  • 4
  • 46
  • 68