Skip to content

Commit 473b827

Browse files
committed
Using uppercase "PLUGINS" env variable instead of lowercase one. Fixes yGuy#48
1 parent fe753a6 commit 473b827

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/plugins/GraphPlugin.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ export class GraphPlugin extends PluginBase<GraphPluginArgs> {
3434
setup(): boolean {
3535
this.addPluginArgument('graphPrompt', 'string', 'A description or topic of the graph. This may also includes style, layout or edge properties')
3636

37-
if(!process.env.plugins || process.env.plugins.indexOf('graph-plugin') === -1)
38-
return false
37+
const plugins = process.env["PLUGINS"];
38+
if(!plugins || plugins.indexOf('graph-plugin') === -1)
39+
return false
3940

4041
return !!this.yFilesGPTServerUrl
4142
}

src/plugins/ImagePlugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ export class ImagePlugin extends PluginBase<ImagePluginArgs> {
2323
setup(): boolean {
2424
this.addPluginArgument('imageDescription', 'string', 'The description of the image provided by the user')
2525

26-
if(!process.env.plugins || process.env.plugins.indexOf('image-plugin') === -1)
26+
const plugins = process.env["PLUGINS"];
27+
if(!plugins || plugins.indexOf('image-plugin') === -1)
2728
return false
2829

2930
return super.setup();

0 commit comments

Comments
 (0)