v153 ยท sub apps
Batch install request
This demo probes the real proposed window.subApps API. Outside an Isolated Web App, or when the permission policy is unavailable, it reports the unsupported branch instead of pretending the install happened.
Build a sub-app install batch
Real API requirement: window.subApps.add() is restricted to secure Isolated Web Apps with the sub-apps permission policy. This page calls it only when present.
code path
const paths = textarea.value.split("\n").map(path => path.trim()).filter(Boolean);
if ("subApps" in window && typeof window.subApps.add === "function") {
const response = await window.subApps.add(paths);
}