{"size": 601, "ext": "js", "max_stars_repo_path": "popup.js", "max_stars_repo_name": "drklrd/fipe-chrome-extension", "max_stars_repo_stars_event_min_datetime": "2017-05-23T09:45:15.000Z", "max_stars_repo_stars_event_max_datetime": "2017-05-23T09:45:15.000Z", "max_issues_repo_path": "popup.js", "max_issues_repo_name": "drklrd/fipe-chrome-extension", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "popup.js", "max_forks_repo_name": "drklrd/fipe-chrome-extension", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.0416666667, "max_line_length": 154, "alphanum_fraction": 0.6605657238}
document.addEventListener('DOMContentLoaded', ()=>{
	try{
		var socket = io('http://localhost:8080');	
		chrome.tabs.query({'active': true, 'windowId': chrome.windows.WINDOW_ID_CURRENT},
		   function(tabs){
		   		var url = tabs[0].url;
		      	socket.emit('newUrl',{newUrl:url});
		      	document.getElementById('home-section').innerHTML="New download is queued for resource at <b>" + url + "</b>";
		   }
		);
	}

	catch(err){
		document.getElementById('home-section').innerHTML="Socket server is not running. This extension requires socket server running at http://localhost:8080"
	}
});







