<webview> tag not working Chrome Packaged Extensions -
anyone have advice getting work in chrome packaged apps? have followed in tutorials, , webview doesn't load url, container shows up. used horrible colours on purpose see frames (sorry in advance)
manifest.json - http://pastebin.com/dkdx3qur window.html - http://pastebin.com/rbqz5mng
any advice give great!
google chrome version 4.0.1312.57 m
sadly, pastebin outdated, guess problem packaged app legacy packaged apps.
to prepare that, convert this:
"app": { "launch": { "local_path": "browser.html" } },
to this:
"app": { "background": { "scripts": ["main.js"] } },
main.js should contain this:
chrome.app.runtime.onlaunched.addlistener(runapp); chrome.app.runtime.onrestarted.addlistener(runapp); function runapp() { window.open("browser.html"); };
google-chrome webview
No comments:
Post a Comment