I have sent my manifest file to you. :)
I downloaded some sample chrome app codes, and it runs well, and the below is my part of my manifest file.
"app": {
"launch": {
"local_path": "app/index.html"
}
},
"background": {
"scripts": ["background/background.js"],
"persistent": false
}
I guess Chrome determine my code as an extension instead of an app, that's why I can't access the api `chrome.app.window`. I have to add app background page in my manifest file to get access of `chrome.app.window` api.
But what if I want to launch my app window due to some user's event?
Take my TJDict for example, it's an English-Chinese dictionary extension, it contains non persistent background page, listening the event of user's double click to an English word, and then calls `chrome.app.window.create` to show the dictionary.
My extension has been installed about 1500 times, it used to work, but now useless. Is there any way to get it work again? I really don't want to make my users disappointed. OQ
How about something like this in manifest.json?
"permissions": ["app.window"]