Permalink
Browse files

Drafts not showing in events

  • Loading branch information...
Manuel-777 committed Dec 6, 2018
1 parent e400887 commit 98a4d82fb47668eafb8dfc48f3f0a626aac7a6cf
Showing with 12 additions and 7 deletions.
  1. +5 −1 package.json
  2. +7 −6 window_background/background.js
@@ -3,13 +3,17 @@
"description": "An MTG Arena deck tracker and statistics manager.",
"author": "Manuel-777",
"repository": "https://github.com/Manuel-777/MTG-Arena-Tool",
"version": "2.2.1",
"version": "2.2.2",
"main": "main.js",
"build": {
"appId": "com.github.manuel777.mtgatool",
"win": {
"target": "NSIS",
"icon": "icon.ico"
},
"linux": {
"target": "deb",
"icon": "icon.ico"
}
},
"scripts": {
@@ -628,8 +628,9 @@ let prevLogSize = 0;
let logLoopMode = 0;

let logUri = mtgaLog.defaultLogUri();
if (settingsStore.get('logUri')) {
logUri = settingsStore.get('logUri');
let settingsLogUri = settingsStore.get('logUri');
if (settingsLogUri) {
logUri = settingsLogUri;
}
console.log(logUri);
window.setInterval(attemptLogLoop, 250);
@@ -1043,12 +1044,12 @@ function processLogData(data) {
json.date = logTime;
}
if (json.Id != "00000000-0000-0000-0000-000000000000") {
console.log("Save course:", json);
json._id = json.Id;
delete json.Id;

if (json.CourseDeck != null) {
if (json.CourseDeck) {
json.CourseDeck.colors = get_deck_colors(json.CourseDeck);
json.courseDeck.custom = true;
json.CourseDeck.custom = true;
//json.date = timestamp();
console.log(json.CourseDeck, json.CourseDeck.colors)
httpSubmitCourse(json);
@@ -1441,7 +1442,7 @@ function processLogData(data) {
}
//ipc_send("renderer_show", 1);

draftId = json.Id;
draftId = json.Id+'-draft';
console.log("Complete draft", json);
saveDraft();
return;

0 comments on commit 98a4d82

Please sign in to comment.