From f5f406b43c745ff43007471376aca92007a5b319 Mon Sep 17 00:00:00 2001 From: Boof2015 <75185879+Boof2015@users.noreply.github.com> Date: Tue, 2 Jun 2026 16:12:51 -0400 Subject: [PATCH] fix render issue for linux vst --- plugin/Source/PluginEditor.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugin/Source/PluginEditor.cpp b/plugin/Source/PluginEditor.cpp index 496ddb9..7d4f1f8 100644 --- a/plugin/Source/PluginEditor.cpp +++ b/plugin/Source/PluginEditor.cpp @@ -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; }