mirror of
https://github.com/Boof2015/prism.git
synced 2026-08-12 05:10:51 +02:00
fix render issue for linux vst
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user