{"size": 719, "ext": "js", "max_stars_repo_path": "wwwroot/js/SaveHelper.js", "max_stars_repo_name": "hvergi/RepairGame", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "wwwroot/js/SaveHelper.js", "max_issues_repo_name": "hvergi/RepairGame", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "wwwroot/js/SaveHelper.js", "max_forks_repo_name": "hvergi/RepairGame", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.7931034483, "max_line_length": 61, "alphanum_fraction": 0.6870653686}
﻿

function ExportSave(slotKey) {
	var exportSaved = localStorage.getItem(slotKey);
	var file = new Blob([exportSaved], { type: "text/plain" });
	if (
		window.navigator.msSaveOrOpenBlob // IE10+
	)
		window.navigator.msSaveOrOpenBlob(file, "Madnathsave.txt");
	else {
		// Others
		var a = document.createElement("a"),
			url = URL.createObjectURL(file);
		a.href = url;
		a.download = "Madnathsave.txt";
		document.body.appendChild(a);
		a.click();
		setTimeout(function () {
			document.body.removeChild(a);
			window.URL.revokeObjectURL(url);
		}, 0);
	}
}

function GetItem(slotKey) {
	let keydata = localStorage.getItem(slotKey);
    if (keydata == "undefined") return undefined;
    return JSON.parse(keydata);
}