Skip to content

Commit

Permalink
Merge pull request #91 from KristjanESPERANTO/master
Browse files Browse the repository at this point in the history
Replace 'node-fetch' by internal fetch API
  • Loading branch information
timdows authored Oct 9, 2023
2 parents 6326360 + 9f2af71 commit b41ac42
Show file tree
Hide file tree
Showing 4 changed files with 1,617 additions and 458 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,17 @@ For every column it checks if a valid DateTime is given, and then formats it to

## Installation

Just clone the module into your modules folder of your MagicMirror².

```shell
git clone https://github.com/timdows/MMM-JsonTable
```

That's it!

If you are a developer please also install the depenendies for linter and prettier:

```shell
cd MMM-JsonTable
npm install
```
Expand Down
4 changes: 0 additions & 4 deletions node_helper.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
const NodeHelper = require("node_helper");
const Log = require("logger");

const fetch = (...args) =>
// eslint-disable-next-line no-shadow
import("node-fetch").then(({ default: fetch }) => fetch(...args));

module.exports = NodeHelper.create({
start() {
Log.log("MMM-JsonTable helper started...");
Expand Down
Loading

0 comments on commit b41ac42

Please sign in to comment.