Skip to content

Commit 1dbd155

Browse files
committed
Update electron and sqlite3 and fix export #171
* Update Electron to 1.6.14 * Update sqlite3 to 3.1.10 * Fix JSON export by adding separate Signed-off-by: Jillian Daguil <[email protected]>
1 parent 7194a1a commit 1dbd155

File tree

4 files changed

+5199
-4453
lines changed

4 files changed

+5199
-4453
lines changed

assets/js/aboutCodeDB.js

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,29 @@ class AboutCodeDB {
6262

6363
// Include Array for queries
6464
this.fileIncludes = [
65-
this.License,
66-
this.Copyright,
67-
this.Package,
68-
this.Email,
69-
this.Url,
70-
this.Component
65+
{
66+
model: this.License,
67+
separate: true
68+
},
69+
{
70+
model: this.Copyright,
71+
separate: true
72+
},
73+
{
74+
model: this.Package,
75+
separate: true
76+
},
77+
{
78+
model: this.Email,
79+
separate: true
80+
},
81+
{
82+
model: this.Url,
83+
separate: true
84+
},
85+
{
86+
model: this.Component
87+
}
7188
];
7289

7390
// A promise that will return when the db and tables have been created

assets/js/renderer.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,9 @@ $(document).ready(function () {
802802
components: arguments[1]
803803
};
804804

805-
fs.writeFile(fileName, JSON.stringify(json));
805+
fs.writeFile(fileName, JSON.stringify(json), (err) => {
806+
if (err) throw err;
807+
});
806808
});
807809

808810
});
@@ -831,7 +833,9 @@ $(document).ready(function () {
831833
components: components
832834
};
833835

834-
fs.writeFile(fileName, JSON.stringify(json));
836+
fs.writeFile(fileName, JSON.stringify(json), (err) => {
837+
if (err) throw err;
838+
});
835839
});
836840

837841
});

0 commit comments

Comments
 (0)