Skip to content

Commit

Permalink
Update background.js
Browse files Browse the repository at this point in the history
  • Loading branch information
phocks authored Aug 19, 2020
1 parent fcebabd commit b693dc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const parser = require("fast-xml-parser");
const _ = require("lodash");

const TIME_BETWEEN_FETCH_STORIES = 15; // In minutes
const TIME_BETWEEN_FETCH_STORIES = 5; // In minutes

let stories;
let openedStories = [];
Expand All @@ -13,6 +13,7 @@ let options = { count: "true", newTab: "false" };

const getLatest = () => {
// Fetches latest story and sets it in global
// (cached if no change detected)
fetch("https://www.abc.net.au/news/feed/51120/rss.xml")
.then((res) => res.text())
.then((text) => {
Expand Down

0 comments on commit b693dc2

Please sign in to comment.