Skip to content

Commit dca62ff

Browse files
authored
Last changes before new release
+ Changed description to be inline with Chrome OS app. + Changed Dat downloading code back to storing the data offline, but this time in sparse mode to only download what the user uses, instead of the entire Dat.
1 parent 9b7e732 commit dca62ff

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

electron app/resources/datpart/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "DatPart",
33
"productName": "DatPart",
4-
"description": "Load Dat's in your web browser.",
4+
"description": "DatPart server app.",
55
"homepage": "https://github.com/HughIsaacs2/DatPart",
66
"repository": {
77
"type": "git",
@@ -11,7 +11,9 @@
1111
"author": "Hugh Isaacs II <hughisaacs@acrylicstyle.com>",
1212
"license": "MIT",
1313
"main": "launch.js",
14-
"dependencies": {},
14+
"dependencies": {
15+
"dat-node": "3.5.14"
16+
},
1517
"build": {
1618
"files": [
1719
"node_modules/",
@@ -66,8 +68,12 @@
6668
"pack": "build --dir",
6769
"dist": "build"
6870
},
71+
"electronVersion": "4.1.2",
72+
"electronDownload": {
73+
"version": "4.1.2"
74+
},
6975
"devDependencies": {
7076
"dat-node": "3.5.14",
71-
"electron": "4.0.8"
77+
"electron": "4.1.2"
7278
}
7379
}

electron app/resources/datpart/server_script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ if(request.method == 'GET' && currentTLD == 'dat_site' || request.method == 'GET
183183
datMap[currentURLhostNoTLD] = {};
184184
dat( __dirname + '/../../dats/'+currentURLhostNoTLD, {
185185
// 2. Tell Dat what link I want
186-
key: currentURLhostNoTLD, temp: true, sparse: true // (a 64 character hash from above)
186+
key: currentURLhostNoTLD, temp: false, sparse: true // (a 64 character hash from above)
187187
}, function (err, dat) {
188188
if (err) {throw err;logToScreen(err);}
189189

0 commit comments

Comments
 (0)