Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fix metadata not always being updated. closes #233
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Mar 22, 2017
1 parent acf2a4d commit 968bad1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions models/repos.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ function createModel () {

dat.metadata = {}

multidat.readManifest(dat, function (_, manifest) {
if (!manifest) return
const updates = multidat.readManifest(dat)
updates.on('manifest', function (manifest) {
dat.metadata.title = manifest.title
dat.metadata.author = manifest.author
update()
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dat-doctor": "^1.2.2",
"dat-encoding": "^4.0.1",
"dat-icons": "^1.12.0",
"dat-worker": "^7.0.2",
"dat-worker": "^7.0.6",
"electron-auto-updater": "^0.9.2",
"electron-default-menu": "^1.0.0",
"electron-window": "^0.8.1",
Expand All @@ -25,7 +25,7 @@
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"ms": "^0.7.2",
"multidat": "^3.0.0",
"multidat": "^3.1.0",
"nanomorph": "^2.1.3",
"prettier-bytes": "^1.0.3",
"rimraf": "^2.5.4",
Expand Down

0 comments on commit 968bad1

Please sign in to comment.