git ssb

7+

dinoworm 🐛 / patchcore



Commit a98ff06563b4d04ecb5e5484462e942248481fbb

add throw to contact About when id not supplied

mix irving committed on 3/16/2017, 9:11:51 AM
Parent: 54577b2141ee9bb0645395a04cdba010c98fba9e

Files changed

about/obs.jschanged
about/obs.jsView
@@ -103,8 +103,10 @@
103103 }
104104 }
105105
106106 function About (api, id, sync) {
107 + if (!id) throw new Error('About requires an id!')
108 +
107109 var pauser = pullPause((paused) => {})
108110
109111 // transparent image
110112 var fallbackImageUrl = 'data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='

Built with git-ssb-web