Fix extension lookup
This commit is contained in:
parent
d28a6e297c
commit
6279cfe6e0
1 changed files with 3 additions and 1 deletions
|
@ -33,7 +33,9 @@ Do not add any other keys, text, or formatting.`;
|
||||||
|
|
||||||
class CustomerTermBase {
|
class CustomerTermBase {
|
||||||
constructor(nameId, operators) {
|
constructor(nameId, operators) {
|
||||||
this.extension = ExtensionParent.GlobalManager.getExtension("ai-filter@example");
|
// Lookup our extension instance using the ID from manifest.json
|
||||||
|
// so locale strings are resolved correctly.
|
||||||
|
this.extension = ExtensionParent.GlobalManager.getExtension("ai-filter@jordanwages");
|
||||||
this.id = "aifilter#" + nameId;
|
this.id = "aifilter#" + nameId;
|
||||||
this.name = this.extension.localeData.localizeMessage(nameId);
|
this.name = this.extension.localeData.localizeMessage(nameId);
|
||||||
this.operators = operators;
|
this.operators = operators;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue