Skip to content

Commit

Permalink
required API updates
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-hanheide committed Nov 7, 2023
1 parent 481985b commit 5b2a9a4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ copyTextarea.addEventListener('click', function(event) {
}
});

chrome.tabs.getSelected(null, function(e) {
domain = url_domain(e.url);
chrome.tabs.query({ active: true, lastFocusedWindow: true }, function(e) {
var url = e[0].url;
domain = url_domain(url);
console.log(url);
chrome.cookies.get({
url: e.url,
url: url,
name: 'webvpn'
}, function(cookie) {
console.log(cookie);
Expand Down

0 comments on commit 5b2a9a4

Please sign in to comment.