Merge pull request #1053 from OpenSpace/feature/profile

Feature/profile
This commit is contained in:
Alexander Bock
2020-01-27 16:18:01 -05:00
committed by GitHub
22 changed files with 1035 additions and 6 deletions
+8 -3
View File
@@ -84,9 +84,14 @@ void BrowserInstance::initialize() {
void BrowserInstance::loadUrl(std::string url) {
ghoul_assert(_isInitialized, "BrowserInstance should be initialized");
LDEBUG(fmt::format("Loading URL: {}", url));
CefString cefUrl = std::move(url);
_browser->GetMainFrame()->LoadURL(cefUrl);
if (!url.empty()) {
LDEBUG(fmt::format("Loading URL: {}", url));
CefString cefUrl = std::move(url);
_browser->GetMainFrame()->LoadURL(cefUrl);
}
else {
LWARNING("Provided browser URL is empty");
}
}
bool BrowserInstance::loadLocalPath(std::string path) {