diff --git a/WebInstall/explainer_same_domain.md b/WebInstall/explainer_same_domain.md index 1bd10af7..c9919adc 100644 --- a/WebInstall/explainer_same_domain.md +++ b/WebInstall/explainer_same_domain.md @@ -84,10 +84,11 @@ To install a web site/app, the site/app would use the promise-based method`navig /* simple example of using navigator.install */ const installApp = async () => { - try{ + try { const value = await navigator.install('content_id_123'); + } catch(err) { + console.error(err.message); } - catch(err){console.error(err.message)} }; ```