From d9531181f7318b6ce14751230a4253151a543d4d Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 2 Aug 2020 22:24:34 +0100 Subject: [PATCH] making sure to only pull the quotes once --- public/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/script.js b/public/js/script.js index 7f68a7c0c..0749e4214 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -389,7 +389,7 @@ function initWords() { }); } - if (config.mode === "quote") { + if (config.mode === "quote" && quotes.length == 0) { showBackgroundLoader(); $.ajax({ url: "js/english_quotes.json",