Skip to content

Commit

Permalink
Fix no options passed (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraklin authored Oct 6, 2020
1 parent fb08e59 commit ed4ad58
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion elm-app/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { register } from '../../dist/elm-console-debug.js';

let opts = {simple_mode: false, debug: true, sizeLimit: 1000}

window.elmopts = register(opts);
window.elmopts = register();

Elm.Main.init({
node: document.getElementById('root'),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elm-debug-transformer",
"version": "1.1.1",
"version": "1.1.2",
"description": "Transform Elm Debug.log output into nice log object with custom formatter",
"main": "dist/elm-console-debug.js",
"author": "Tomas Latal <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function register(opts: IOptions | undefined): IOptions {
}
const msg = arguments[0];

if (!msg || msg.length > opts.limit) {
if (!msg || msg.length > currentOpts.limit) {
log.call(console, msg);
return;
}
Expand Down

0 comments on commit ed4ad58

Please sign in to comment.