Closed jdgjsag67251 closed 2 years ago
In order for a plugin to replicate the App.getLaunchUrl function for Electron it needs to have access to the config. This pull-request adds the config to the constructor of a plugin. It can access it like so:
App.getLaunchUrl
export default class App { private config?: Record<string, any>; constructor(config?: Record<string, any>) { this.config = config; } getLaunchUrl(): string | undefined { const url = this.config?.server?.url; return url ? { url } : undefined; } }
In order for a plugin to replicate the
App.getLaunchUrl
function for Electron it needs to have access to the config. This pull-request adds the config to the constructor of a plugin. It can access it like so: