focus - Chrome Apps: Keep An App Visible + detect when not focused -
keep app visible: app visible when user has clicked off (not x, they've moved different window), chromeos's music player.
detect when not focused: self-explanatory sadly, can't give code samples because don't know start.
add "alwaysontopwindows" permission manifest. create window this:
chrome.app.window.create("index.html", { alwaysontop: true })
Comments
Post a Comment