forked from webkhung/jira_agile_instant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
background.js
30 lines (30 loc) · 1.23 KB
/
background.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
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
if (request.method == "getLocalStorage") {
sendResponse({
githubUsername: (localStorage['githubUsername'] || ''),
githubPassword: (localStorage['githubPassword'] || ''),
githubUser: (localStorage['githubUser'] || ''),
githubRepo: (localStorage['githubRepo'] || ''),
watchersNames: (localStorage['watchersNames'] || ''),
hoverDescription: localStorage['hoverDescription'],
lastComment: localStorage['lastComment'],
relatedCards: localStorage['relatedCards'],
fixVersion: localStorage['fixVersion'],
ck1: localStorage['ck1'],
ck2: localStorage['ck2'],
ck3: localStorage['ck3'],
ck4: localStorage['ck4'],
ck5: localStorage['ck5'],
ck6: localStorage['ck6'],
ck7: localStorage['ck7'],
ck8: localStorage['ck8'],
ck9: localStorage['ck9'],
ck10: localStorage['ck10']
});
}
else if (request.method == "updateJiraBoard") {
_gaq.push(['_trackEvent', request.id, 'updateJiraBoard']);
}
else
sendResponse({});
});