Skip to content

Commit f8ee4bb

Browse files
committed
Merge branch 'master' of https://github.com/Anna-Assistant/Anna
2 parents 6c618a1 + fc5b143 commit f8ee4bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

background.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -630,11 +630,11 @@ function swapTab() {
630630
}
631631

632632
function tellJoke() {
633-
var jokeURL = 'https://api.chucknorris.io/jokes/random';
633+
var jokeURL = 'https://icanhazdadjoke.com/';
634634
$.getJSON(jokeURL, function(data) {
635-
setResponse(data.value.toLowerCase());
635+
setResponse(data.joke.toLowerCase());
636636
chrome.tabs.create({
637-
'url': data.url
637+
'url': jokeURL+'j/'+data.id
638638
});
639639
}).fail(function() {
640640
var failJoke = "Sorry! I can't read the joke! You can have a look at it!";

0 commit comments

Comments
 (0)