fix render issue for linux vst

This commit is contained in:
Boof2015
2026-06-02 16:12:51 -04:00
parent 583b436600
commit f5f406b43c
+8 -1
View File
@@ -93,6 +93,11 @@ namespace
}
return std::nullopt;
}
juce::String getResourceProviderOrigin()
{
return juce::WebBrowserComponent::getResourceProviderRoot().trimCharactersAtEnd("/");
}
#endif
juce::WebBrowserComponent::Options makeWebOptions(PrismSpectrumEditor& editor, const char* scopeId)
@@ -124,7 +129,9 @@ namespace
#endif
#if ! PRISM_USE_DEV_SERVER
options = options.withResourceProvider([](const auto& url) { return provideResource(url); });
options = options.withResourceProvider(
[](const auto& url) { return provideResource(url); },
getResourceProviderOrigin());
#endif
return options;
}