Chrome API tab in devtools mode

Viewed 22

Hi is it possible to create new tab in devtools mode using chrome api?

I want to create extension that open multiple tabs all in devtools mode.

chrome.tabs.create({
   url: newUrl,
   windowType: "devtools"});

Obviously property windowType does not work it is just to ilustrate.

1 Answers

Did you get any of the following errors?

popup.js:5 Uncaught TypeError: Error in invocation of tabs.create(object createProperties, optional function callback): Error at parameter 'createProperties': Unexpected property: 'windowType'. at button.onclick (popup.js:5:15)

createProperties does not have windowType.

https://developer.chrome.com/docs/extensions/reference/tabs/#method-create

Related