add option to disable devtools
This commit is contained in:
parent
02ce727ff6
commit
0d7e7be748
5 changed files with 17 additions and 0 deletions
|
@ -84,6 +84,10 @@ Window::Window(v8::Isolate* isolate, v8::Local<v8::Object> wrapper,
|
|||
if (options.Get("transparent", &transparent))
|
||||
web_preferences.Set("transparent", transparent);
|
||||
|
||||
// Disable WebContents.OpenDevTools() ?
|
||||
if (options.Get(options::kDisableDevTools, &value))
|
||||
web_preferences.Set(options::kDisableDevTools, value);
|
||||
|
||||
// Creates the WebContents used by BrowserWindow.
|
||||
auto web_contents = WebContents::Create(isolate, web_preferences);
|
||||
web_contents_.Reset(isolate, web_contents.ToV8());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue