Skip to content

Commit

Permalink
Merge branch 'refactoring'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Litzenburger authored and Jan Litzenburger committed Jan 24, 2021
2 parents 4470525 + f26588d commit 1fb3745
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions MMM-Jast.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* global Class, JastUtils */

"use strict";

Module.register("MMM-Jast", {
Expand Down Expand Up @@ -27,7 +26,7 @@ Module.register("MMM-Jast", {
baseURL: "https://www.alphavantage.co/",
apiKey: "",
scroll: "vertical",
maxWidth: "100%",
maxWidth: "300px",
showDepotGrowth: false
},

Expand Down Expand Up @@ -63,6 +62,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 1fb3745

Please sign in to comment.