【发布时间】:2014-11-06 11:40:48
【问题描述】:
美好的一天。我正在尝试将我的网站移植到 Chrome 应用程序。当我运行我的应用程序时出现错误,虽然我不使用这些组件:
window.toolbar is not available in packaged apps.
window.statusbar is not available in packaged apps.
window.scrollbars is not available in packaged apps.
window.personalbar is not available in packaged apps.
window.menubar is not available in packaged apps.
window.locationbar is not available in packaged apps.
尝试添加 manifest.json 行:“content_security_policy”:“script-src 'self' 'unsafe-eval'; object-src 'self'”,但错误仍然存在。请告诉我,我该怎么办?
【问题讨论】:
-
您是否在某个时候枚举
window的属性?
标签: javascript google-chrome google-chrome-app