From cad65694716071d7a23f67aa47c6cd8adb8c6430 Mon Sep 17 00:00:00 2001 From: Antonin Stefanutti Date: Tue, 2 Jul 2024 08:32:46 +0200 Subject: [PATCH] Current reveal plugin options are flags --- plugins/reveal.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/reveal.js b/plugins/reveal.js index 20405ae..66a2ba9 100644 --- a/plugins/reveal.js +++ b/plugins/reveal.js @@ -3,10 +3,12 @@ import URI from 'urijs'; export const options = { fragments: { default : false, + flag : true, help : 'Enable or disable fragments', }, progress: { default : false, + flag : true, help : 'Enable or disable progress bar', }, }; @@ -17,9 +19,8 @@ class Reveal { constructor(page, opts) { this.page = page; - this.options = opts; - this.fragments = this.options.fragments; - this.progress = this.options.progress; + this.fragments = opts.fragments; + this.progress = opts.progress; } getName() {