From f26588d3795fb3f765bb2b823edb13fcad062e4b Mon Sep 17 00:00:00 2001 From: Jan Litzenburger Date: Fri, 15 Jan 2021 16:11:51 +0100 Subject: [PATCH] unset nunjucks async mode --- MMM-Jast.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MMM-Jast.js b/MMM-Jast.js index 6e4cf6d..67e7287 100644 --- a/MMM-Jast.js +++ b/MMM-Jast.js @@ -1,3 +1,4 @@ +/* global Class, JastUtils */ "use strict"; Module.register("MMM-Jast", { @@ -24,7 +25,7 @@ Module.register("MMM-Jast", { baseURL: "https://www.alphavantage.co/", apiKey: "IPWULBT54Y3LHJME", scroll: "vertical", - //maxWidth: "300px", + maxWidth: "300px", showDepotGrowth: false }, @@ -60,6 +61,10 @@ Module.register("MMM-Jast", { }, start() { + // Override defaults + this.nunjucksEnvironment().loaders[0].async = false; + this.nunjucksEnvironment().loaders[0].useCache = true; + this.exchangeData = []; this.getExchangeRate(); this.getStocks();