1
0

JS changes

This commit is contained in:
Scott E. Graves
2017-03-18 18:03:38 -05:00
parent 829341f4a7
commit 62b3dac1e3
6 changed files with 99 additions and 8 deletions

View File

@@ -50,6 +50,18 @@ CSiaDriveApp::CSiaDriveApp()
{
}
void CSiaDriveApp::OnContextCreated(
CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefRefPtr<CefV8Context> context)
{
CefRefPtr<CefV8Value> global = context->GetGlobal();
CefRefPtr<CefV8Value> obj = CefV8Value::CreateObject(nullptr);
obj->SetValue("isWalletLocked", CefV8Value::CreateBool(true));
obj->SetValue("isWalletConfigured", CefV8Value::CreateBool(false));
global->SetValue("uiState", obj);
}
void CSiaDriveApp::OnContextInitialized()
{
CEF_REQUIRE_UI_THREAD();