Reading environment variable from Google Chrome extension

Is it possible to read the environment variable from the Google Chrome extension code, i.e. from background.js ? This is possible with Mozilla Firefox extensions , as follows:

var system = require("sdk/system"); console.log(system.env.PATH); 

What is equivalent code in case of Chrome? OS - Windows.

+8
javascript windows environment-variables google-chrome-extension firefox-addon
source share
1 answer

If you want to interact with the OS, you need to create a Windows executable and use Native Messaging to communicate with it. See an example .

+1
source share

All Articles