browser: change default app url

This commit is contained in:
Adam
2023-04-03 20:25:19 +01:00
parent efd95056ca
commit e226377066

View File

@@ -9,7 +9,8 @@ Browser::Window::Window(CefRefPtr<CefClient> client, Browser::Details details, C
if (details.controls_overlay) {
CefRefPtr<CefDictionaryValue> dict = CefDictionaryValue::Create();
dict->SetString("BoltAppUrl", url);
this->browser_view = CefBrowserView::CreateBrowserView(client, "http://bolt/app", browser_settings, std::move(dict), nullptr, this);
// URL is unused, but still needs to be interpreted as valid, for some reason
this->browser_view = CefBrowserView::CreateBrowserView(client, "0", browser_settings, std::move(dict), nullptr, this);
} else {
this->browser_view = CefBrowserView::CreateBrowserView(client, url, browser_settings, nullptr, nullptr, this);
}