Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use the chrome.sessions API

I'm writing an extension that should restore the last session like this

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

but this doesn't work.

(See the documentation here)

like image 787
Emerson Avatar asked Nov 21 '25 22:11

Emerson


1 Answers

Disregard this, I forgot to set the 'sessions' permission in the manifest.

like image 129
Emerson Avatar answered Nov 25 '25 00:11

Emerson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!