Skip to content

Commit

Permalink
add fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thesofakillers committed Nov 18, 2019
1 parent 91fada5 commit a54434b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions GPTrueOrFalse/src/popup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ window.onload = () => {
})
.then(res => {
// if it is, do nothing for this promise
if (res.reply) return Promise.resolve();
if (res) return Promise.resolve();
})
.catch(() => {
// an error being thrown signals the content script not being loaded, load it.
Expand Down Expand Up @@ -49,7 +49,6 @@ window.onload = () => {
return deactivateButton("evaluateSelectedText", selected_words);
}
})
.catch(err => console.log(err))
);
};

Expand Down

0 comments on commit a54434b

Please sign in to comment.