开发者

Chrome captueVisibleTab() when window is minimized

I am using Google Chrome to create screenshots of several sites in an automatic way. For that I am using the captureVisibleTab() function the API provides. Because this is an endless task I want to minimize the Chrome window so it can run in the background. Unfortunately the function works only when the tab is visible (ok, the function name indicates that already). But开发者_如何转开发 is there any possibility to create screenshots with Chrome when the window is minimized?


captureVisableTab() works fine for minimized windows. I just ran chrome.tabs.captureVisibleTab(windowId, null, function(dataUrl){ console.log(dataUrl) }); where `windowId was the id of a minimized window. Keep in mind though that it will only work for the front most tab in any particular window.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜