问题
The chrome.sessions api specifies these three functions
getRecentlyClosed − chrome.sessions.getRecentlyClosed( Filter filter, function callback)
getDevices − chrome.sessions.getDevices( Filter filter, function callback)
restore − chrome.sessions.restore(string sessionId, function callback)
I see however no way to retrieve a sessionID to pass into the chrome.sessions.restore function.
How can I get the current sessions ID for restoring it somewhen in future?
Can I restore sessions indefinitely back in history respectively save a session?
来源:https://stackoverflow.com/questions/38683057/chrome-extension-api-chrome-sessions-how-to-get-session-id