Mark detach option for 2.0 removal

This commit is contained in:
Kevin Sawicki 2016-09-07 11:21:13 -07:00
parent 2885e980a5
commit 224d3aef3e

View file

@ -948,6 +948,8 @@ void WebContents::OpenDevTools(mate::Arguments* args) {
mate::Dictionary options;
if (args->GetNext(&options)) {
options.Get("mode", &state);
// TODO(kevinsawicki) Remove in 2.0
options.Get("detach", &detach);
if (state.empty() && detach)
state = "detach";