Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   chrome.windows.getAll({populate:true},function(wins){
  2.     wins.forEach(function(win){
  3.       console.log("id: "+win.id+" - focused: "+win.focused);
  4.       id=win.id;
  5.  
  6.       mWin=createWindow(win.id, win.name);
  7.       addWindowToDB(mWin);
  8.  
  9.       win.tabs.forEach(function(tab){
  10.         console.log("  "+tab.url);
  11.       });
  12.     });
  13.   });
  14.  
  15.   dumpDB();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement