<!DOCTYPE html>
<html>
<head>
<title>getInstalledRelatedApps</title>
<script>
function doGetInstalledRelatedApps() {
if (navigator.getInstalledRelatedApps === undefined) {
window.document.title = 'Fail: navigator.getInstalledRelatedApps === undefined';
return;
}
navigator.getInstalledRelatedApps().then(r => {
window.document.title = 'Success: ' + r.length + ' related apps';
}).catch(e => {
window.document.title = 'Fail: ' + e;
});
}
</script>
</head>
<body>
</body>
</html>