}
void Window::LoadURL(std::string url) {
- const static std::string http = "http";
+ const static std::string http = "http://";
+ const static std::string https = "https://";
+ const static std::string file = "file://";
const static std::string about = "about:";
if (url.compare(0, 1, "/") == 0) {
url = "file://" + url;
} else if (url.compare(0, http.length(), http) != 0 &&
+ url.compare(0, https.length(), https) != 0 &&
+ url.compare(0, file.length(), file) != 0 &&
url.compare(0, about.length(), about) != 0) {
url = "http://" + url;
}