我如何使用chrome.sessions API

时间:2014-09-03 21:11:01

标签: google-chrome-extension

我正在编写一个应该像这样恢复上一个会话的扩展程序

if(request.msg == "reopen"){chrome.sessions.restore(null, null)}

但这不起作用。

(参见文档here

1 个答案:

答案 0 :(得分:2)

忽略这一点,我忘了在清单中设置'会话'权限。