You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
296 B
JavaScript
11 lines
296 B
JavaScript
/*
|
|
* Pending electron 1.6.x
|
|
* const env = require('url').parse(window.location, true).query;
|
|
*/
|
|
|
|
window.env = {};
|
|
window.location.search.substring(1).split('&').forEach(function(variable) {
|
|
var pair = variable.split('=');
|
|
env[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
|
|
});
|