Enable Web Bluetooth in Electron


#1

Hi,

I am interested in building Electron with Web Bluetooth enabled. I’ve been following these build instructions.

Thus far I’ve tried to modify bootstrap.py's run_update method to include the define:

  execute_stdout([sys.executable, update, '--defines', 'enable-web-bluetooth ' + defines], env)

But when I run window.navigator.bluetooth in the Chrome Debugger I get undefined. It doesn’t look like the build.py script accepts arbitrary defines. Where would be the appropriate code to modify to ensure that lib chromium is built with bluetooth enabled.

Thanks
Greg