【发布时间】:2013-12-18 02:02:45
【问题描述】:
这不起作用:
How to build an chrome extension like Google Hangouts
我的问题与此类似:
How do I customize the title bar of a popup in a chrome extension?
我用了chrome.windows.create({...type:panel});,但是它的外观是这样的:
是否可以自定义“普通标题栏”区域?
代码在这里。
var createWindow = function (tab) {
if (appWindow) {
chrome.windows.remove(appWindow.id);
}
chrome.windows.create({
tabId: tab.id,
url: 'http://localhost:8080',
left: Math.round(screen.width - 300),
top: Math.round(screen.height - 500),
width: 300,
height: 500,
type: 'panel'
}, function(win) {
appWindow = win;
chrome.tabs.executeScript(appWindow.tabs[0].id, { file: './js/app_inject.js'}, function(){
// console.log('inject executed');
});
});
};
chrome.browserAction.onClicked.addListener(createWindow);
"//localhost:8080" 是我的本地服务器页面。
【问题讨论】:
-
您能否提供您正在使用的源代码以便我们为您提供帮助?
标签: google-chrome-extension hangout