Skip to content

Commit

Permalink
unset nunjucks async mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Litzenburger authored and Jan Litzenburger committed Jan 15, 2021
1 parent a9fc69d commit f26588d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MMM-Jast.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* global Class, JastUtils */
"use strict";

Module.register("MMM-Jast", {
Expand All @@ -24,7 +25,7 @@ Module.register("MMM-Jast", {
baseURL: "https://www.alphavantage.co/",
apiKey: "IPWULBT54Y3LHJME",
scroll: "vertical",
//maxWidth: "300px",
maxWidth: "300px",
showDepotGrowth: false
},

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit f26588d

Please sign in to comment.