Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chrome.windows.getAll({populate:true},function(wins){
- wins.forEach(function(win){
- console.log("id: "+win.id+" - focused: "+win.focused);
- id=win.id;
- mWin=createWindow(win.id, win.name);
- addWindowToDB(mWin);
- win.tabs.forEach(function(tab){
- console.log(" "+tab.url);
- });
- });
- });
- dumpDB();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement