僅供參考,這裏是我的project。爲什麼不是鉻標籤工作?
這裏是我的清單:
{
"name": "Chatty",
"description": "Yet another IRC client written as a Chrome application",
"version": "0.0.1",
"manifest_version": 2,
"app": {
"background": {
"scripts": ["background.js"]
}
}
}
這裏是我的SUPER基本的網頁,我想在新標籤中打開:
<!doctype HTML>
<html>
<body>
Hello, Chatty IRC client!
</body>
</html>
而且,這裏是我如何在試圖打開新標籤:
chrome.app.runtime.onLaunched.addListener(function(){
chrome.tabs.create({ url: chrome.extensions.getUrl("irc.html") });
});
最後,這裏是我的問題:它不希望在新標籤中打開。有人能幫助我做到這一點嗎?
謝謝Rob。將來可能會有應用程序可以打開而不是全新窗口的選項卡嗎? – bitcycle
@bitcycle不要指望它。 –
傷心。我挖掘我的瀏覽器。 – bitcycle