4

I've created a site that utilizes the new Web Midi Api, native in Chrome Canary. Since web midi isn't enabled by default, I would like to simply direct my users to chrome://flags/#enable-web-midi where they can enable midi.

I discovered that using an anchor tag isn't allowed, nor is window.open("chrome://flags"). I'm wondering if there is a Chrome expert out there who could steer me in the right direction.
I want to make this enabling step as easy as possible for my users.

Matt Forte
  • 43
  • 3

1 Answers1

4
chrome.tabs.create({url: "chrome://flags#enable-web-midi"});

This does not require any permission. (This assumes you are developing a Chrome app, if you are making a normal site, then I don't think it's possible.)

Details on chrome.tabs.create.

Derek 朕會功夫
  • 92,235
  • 44
  • 185
  • 247