1
0

firefox doesn't support import assertions

This commit is contained in:
dtb 2022-02-20 13:12:48 -05:00
parent 0ffab12685
commit 62d244ce6b

View File

@ -6,7 +6,8 @@
* QUOTE_VALUE_ID (see code) respectively * QUOTE_VALUE_ID (see code) respectively
* - use window.quote_new() to get a new quote. */ * - 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 = quotes;
window.QUOTES_L_QUOTE_MARK = '"'; window.QUOTES_L_QUOTE_MARK = '"';
window.QUOTES_R_QUOTE_MARK = '"'; window.QUOTES_R_QUOTE_MARK = '"';