Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of empty 'urlsToWatch' in plugins (#533)
* When plugin defines an empty array of URLs to watch, use the global one #527 * Refactor plugin registration on line 55 to check for both null and non-empty 'pluginUrls'. This ensures proper handling of empty plugin URL arrays and aligns with the requirement outlined in the issue. Updated the 'Register' method call to conditionally use 'pluginUrls' or default to 'defaultUrlsToWatch' based on the not null and not empty check. #528 * Fix handling of empty 'urlsToWatch' in plugins This commit addresses the issue where plugins defining an empty array for 'urlsToWatch' would result in the plugin being disabled. The code has been modified to check for both null and empty arrays, and in both cases, it now defaults to using the global list of URLs. This ensures that plugins remain active even when no specific URLs are provided. * Update dev-proxy/PluginLoader.cs --------- Co-authored-by: Waldek Mastykarz <[email protected]>
- Loading branch information