Skip to content

Commit

Permalink
Changed serve authority to app.example to avoid delay.
Browse files Browse the repository at this point in the history
  • Loading branch information
5cript committed Nov 4, 2023
1 parent 090a767 commit 86eeb69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion nui/include/nui/window.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ namespace Nui
class Window
{
public:
constexpr static std::string_view windowsServeAuthority = "nuilocal";
// Warning! app.example is intentional to avoid timeout issues.
// https://github.com/MicrosoftEdge/WebView2Feedback/issues/2381
constexpr static std::string_view windowsServeAuthority = "app.example";

/**
* @brief Construct a new Window object.
Expand Down
2 changes: 1 addition & 1 deletion nui/src/nui/backend/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ namespace Nui
winImpl->setHtmlWorkaroundToken.emplace();

if (!windowsServeThroughAuthority)
windowsServeThroughAuthority = "nuilocal"s;
windowsServeThroughAuthority = std::string{windowsServeAuthority};
const auto authority = *windowsServeThroughAuthority;

const std::wstring filter = widenString("https://"s + authority + "/index.html");
Expand Down

0 comments on commit 86eeb69

Please sign in to comment.