From 62d244ce6b89efbaa51c272c6f29d6b75afff6a4 Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Sun, 20 Feb 2022 13:12:48 -0500 Subject: [PATCH] firefox doesn't support import assertions --- homepage/js/quotes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homepage/js/quotes.js b/homepage/js/quotes.js index 1e5b1b0..08758df 100644 --- a/homepage/js/quotes.js +++ b/homepage/js/quotes.js @@ -6,7 +6,8 @@ * QUOTE_VALUE_ID (see code) respectively * - use window.quote_new() to get a new quote. */ -import quotes from "./quotes.json" assert { type: "json" }; +/* firefox doesn't support import assertions yet (2022-02-20; fx 97.0) */ +import quotes from "./quotes.json"; window.quotes = quotes; window.QUOTES_L_QUOTE_MARK = '"'; window.QUOTES_R_QUOTE_MARK = '"';