Skip to content

Commit

Permalink
Adding a toolbar button to (re)open the tag window
Browse files Browse the repository at this point in the history
  • Loading branch information
zlatinz committed Jun 19, 2014
1 parent 912255a commit 62c0e5c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
20 changes: 11 additions & 9 deletions gettags.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
console.log('----------Coremetrics Tagbar for Chrome-----------');

// Create the window to do the tagging in
chrome.windows.create({
type: 'popup',
url: "tagwindow.html",
top: 100,
left: 100,
width: 800,
height: 760
}, function (newWindow) {
console.log(newWindow);
chrome.browserAction.onClicked.addListener(function(tab) {
chrome.windows.create({
type: 'popup',
url: "tagwindow.html",
top: 100,
left: 100,
width: 800,
height: 760
}, function (newWindow) {
console.log(newWindow);
});
});

var ourTabId;
Expand Down
4 changes: 4 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@
],
"background": {
"scripts": ["gettags.js"]
},
"browser_action": {
"default_icon": "icon.png",
"default_title": "Coremetrics Bar for Chrome"
}
}

0 comments on commit 62c0e5c

Please sign in to comment.