{"size": 750, "ext": "js", "max_stars_repo_path": "app/renderjs/notify.js", "max_stars_repo_name": "Roland4U/media-viewer", "max_stars_repo_stars_event_min_datetime": "2020-04-09T23:36:02.000Z", "max_stars_repo_stars_event_max_datetime": "2020-04-09T23:36:02.000Z", "max_issues_repo_path": "app/renderjs/notify.js", "max_issues_repo_name": "Roland4U/media-viewer", "max_issues_repo_issues_event_min_datetime": "2021-01-28T20:57:01.000Z", "max_issues_repo_issues_event_max_datetime": "2021-10-12T22:41:03.000Z", "max_forks_repo_path": "app/renderjs/notify.js", "max_forks_repo_name": "Roland4U/media-viewer", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 22.7272727273, "max_line_length": 105, "alphanum_fraction": 0.644}
function notify(title, body) {
	let notif = new Notification(title, {
		body: body.toString()
	});
	notif.onclick = () => {
		console.log('notif clicked');
	};
}
function firstrun() {
	require('sweetalert2')({
		title: 'Want to check out the tutorial?',
		text: 'I noticed this is your first run.',
		type: 'question',
		showCancelButton: true,
		confirmButtonColor: '#3085d6',
		cancelButtonColor: '#d33',
		confirmButtonText: 'Yes!'
	}).then(function () {
		require('electron').remote.getCurrentWindow().loadURL(`file://${__dirname}/../renderhtml/onboard.html`)
	}).catch(err => {
		if (err !== 'cancel') {
			throw err;
		}
	});
}
function sweetAlert(title, text, type) {
	require('sweetalert2')({
		title: title,
		text: text,
		type: type
	})
}
