From b693dc235c6e73cf150032cd9a2c15d942990b37 Mon Sep 17 00:00:00 2001 From: Joshua Byrd Date: Wed, 19 Aug 2020 14:34:35 +1000 Subject: [PATCH] Update background.js --- src/background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/background.js b/src/background.js index c34d341..6f53f85 100644 --- a/src/background.js +++ b/src/background.js @@ -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 = []; @@ -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) => {