Log on preload

This commit is contained in:
lilia 2017-04-07 12:58:42 -07:00 committed by Scott Nonnenberg
parent 6a49036da9
commit 550b926a15
No known key found for this signature in database
GPG key ID: A4931C09644C654B

View file

@ -3,6 +3,8 @@
* const env = require('url').parse(window.location, true).query;
*/
console.log('preload');
window.env = {};
window.location.search.substring(1).split('&').forEach(function(variable) {
var pair = variable.split('=');