-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.js
36 lines (32 loc) · 793 Bytes
/
popup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const currentTab = {
active: true,
currentWindow: true
}
let loadCheckboxesButton = document.getElementById('loadCheckboxesButton');
loadCheckboxesButton.onclick = function(){
chrome.tabs.query(
currentTab,
function(tabs) {
chrome.tabs.executeScript(
tabs[0].id,
{
file: "loadCheckboxes.js"
}
);
}
);
}
let copyItemsButton = document.getElementById('copyItemsButton');
copyItemsButton.onclick = function(){
chrome.tabs.query(
currentTab,
function(tabs) {
chrome.tabs.executeScript(
tabs[0].id,
{
file: "copyItems.js"
}
);
}
);
}