electron / fiddle-core

Run fiddles from anywhere, on any Electron release
MIT License
13 stars 16 forks source link

refactor: add default parameter for Runner.create #26

Closed aryanshridhar closed 2 years ago

aryanshridhar commented 2 years ago

The README documents the usage of Runner.create as

const runner = await Runner.create();

which throws an error of object parameters being undefined here.

Fixed this by adding a default empty object parameter to the Runner.create method (which seems like the right way rather than await Runner.create({}).