aboutsummaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index 0371cda..1037833 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -62,8 +62,13 @@ int main( int argc, char* argv[] )
return 0;
}
+ std::string start_url( input );
+ if ( !start_url.starts_with( "http://" ) && !start_url.starts_with( "https://" ) ) {
+ start_url.insert( 0, "https://" );
+ }
+
try {
- return ricochet::core::Browser::run( input );
+ return ricochet::core::Browser::run( start_url );
} catch ( const std::exception& e ) {
std::cerr << "Critical Error: " << e.what() << "\n";
return 1;