Merge pull request #15 from wagesj45/codex/fix-undefined-this.extension-error

Fix extension lookup
This commit is contained in:
Jordan Wages 2025-06-22 00:06:18 -05:00 committed by GitHub
commit d95023ce3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;