mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Open src/app/atom.coffee by default
This commit is contained in:
@@ -95,7 +95,10 @@ void ClientHandler::OnLoadStart(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefV8Value> bootstrapScript = CefV8Value::CreateString("window-bootstrap");
|
||||
global->SetValue("$bootstrapScript", bootstrapScript, V8_PROPERTY_ATTRIBUTE_NONE);
|
||||
|
||||
CefRefPtr<CefV8Value> pathToOpen = CefV8Value::CreateString("/home/kevin/repositories/atom/index.html");
|
||||
std::string path;
|
||||
path.append(AppGetWorkingDirectory());
|
||||
path.append("/../src/app/atom.coffee");
|
||||
CefRefPtr<CefV8Value> pathToOpen = CefV8Value::CreateString(path);
|
||||
global->SetValue("$pathToOpen", pathToOpen, V8_PROPERTY_ATTRIBUTE_NONE);
|
||||
|
||||
context->Exit();
|
||||
|
||||
Reference in New Issue
Block a user