Commit a98ff06563b4d04ecb5e5484462e942248481fbb
add throw to contact About when id not supplied
mix irving committed on 3/16/2017, 9:11:51 AMParent: 54577b2141ee9bb0645395a04cdba010c98fba9e
Files changed
about/obs.js | changed |
about/obs.js | ||
---|---|---|
@@ -103,8 +103,10 @@ | ||
103 | 103 … | } |
104 | 104 … | } |
105 | 105 … | |
106 | 106 … | function About (api, id, sync) { |
107 … | + if (!id) throw new Error('About requires an id!') | |
108 … | + | |
107 | 109 … | var pauser = pullPause((paused) => {}) |
108 | 110 … | |
109 | 111 … | // transparent image |
110 | 112 … | var fallbackImageUrl = 'data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==' |
Built with git-ssb-web