We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e465e41 commit ab00d47Copy full SHA for ab00d47
exampleVault/Test.md
@@ -1,6 +1,7 @@
1
---
2
text: this is reactive
3
number: 12234234
4
+favoritePrime: 191
5
6
7
```js
jsEngine/api/API.ts
@@ -73,11 +73,12 @@ export class API {
73
74
/**
75
* Gets a plugin by its id. A plugin id can be found by looking at its manifest.
76
+ * If the plugin is not enabled, this will return undefined.
77
*
78
* @param pluginId the id of the plugin.
79
*/
- public getPlugin(pluginId: string): Plugin {
80
- return this.app.plugins.getPlugin(pluginId);
+ public getPlugin(pluginId: string): Plugin | undefined {
81
+ return this.app.plugins.getPlugin(pluginId) ?? undefined;
82
}
83
84
0 commit comments