Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function close(){
- var gettingAll = browser.windows.getAll({
- populate: true,
- windowTypes: ["normal"]
- });
- gettingAll.then((windows) => {
- for (var item of windows) {
- browser.windows.remove(item.id);
- }
- });
- }
- function restartSession {
- close();
- browser.windows.create().then(function (currentWindow) {
- browser.sessions.restore();
- });
- }
Add Comment
Please, Sign In to add comment