How do I restrict my chrome app from being opened multiple times (so just one instance)?
Create the window with an id
and as a singleton
. See the chrome.app.window documentation.
E.G. modify the hello world sample to create the window with
chrome.app.window.create('index.html', { id: "", // Even an empty string is sufficient. singleton: true,