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

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -