state restoration for web-app-capable devices