Skip to content

Commit 5bdd908

Browse files
committed
linted files
1 parent 20cc392 commit 5bdd908

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

popup.html

+13-3
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,23 @@ <h1 id="title">
6666
</p>
6767
<p class="ui small header">
6868
<span style="color: #5cb85c">Easy:</span>
69-
<span id="p_solved_easy" style="color: #000000; opacity: 0.75;">0 </span>
69+
<span
70+
id="p_solved_easy"
71+
style="color: #000000; opacity: 0.75"
72+
>0
73+
</span>
7074
<span style="color: #f0ad4e">&ensp; &ensp; Medium:</span>
71-
<span id="p_solved_medium" style="color: #000000; opacity: 0.75;"
75+
<span
76+
id="p_solved_medium"
77+
style="color: #000000; opacity: 0.75"
7278
>0
7379
</span>
7480
<span style="color: #d9534f">&ensp; &ensp; Hard:</span>
75-
<span id="p_solved_hard" style="color: #000000; opacity: 0.75;">0 </span>
81+
<span
82+
id="p_solved_hard"
83+
style="color: #000000; opacity: 0.75"
84+
>0
85+
</span>
7686
</p>
7787

7888
<div class="ui small header">

popup.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $('#hook_URL').attr(
1919
`chrome-extension://${chrome.runtime.id}/welcome.html`,
2020
);
2121

22-
chrome.storage.sync.get('leethub_token', (data) => {
22+
chrome.storage.local.get('leethub_token', (data) => {
2323
const token = data.leethub_token;
2424
if (token === null || token === undefined) {
2525
action = true;
@@ -33,11 +33,11 @@ chrome.storage.sync.get('leethub_token', (data) => {
3333
if (xhr.readyState === 4) {
3434
if (xhr.status === 200) {
3535
/* Show MAIN FEATURES */
36-
chrome.storage.sync.get('mode_type', (data2) => {
36+
chrome.storage.local.get('mode_type', (data2) => {
3737
if (data2 && data2.mode_type === 'commit') {
3838
$('#commit_mode').show();
3939
/* Get problem stats and repo link */
40-
chrome.storage.sync.get(
40+
chrome.storage.local.get(
4141
['stats', 'leethub_hook'],
4242
(data3) => {
4343
const { stats } = data3;
@@ -62,7 +62,7 @@ chrome.storage.sync.get('leethub_token', (data) => {
6262
} else if (xhr.status === 401) {
6363
// bad oAuth
6464
// reset token and redirect to authorization process again!
65-
chrome.storage.sync.set({ leethub_token: null }, () => {
65+
chrome.storage.local.set({ leethub_token: null }, () => {
6666
console.log(
6767
'BAD oAuth!!! Redirecting back to oAuth process',
6868
);

0 commit comments

Comments
 (0)