.app-button {
display: none;
}
@media (display-mode: standalone) {
.app-button {
display: block;
}
}Create a standalone app / notebook
Create a standalone app
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
function isStandaloneApp() {
return window.matchMedia("(display-mode: standalone)").matches;
}