spectacle icon indicating copy to clipboard operation
spectacle copied to clipboard

Create a util to more concisely parse query params

Open kale-stew opened this issue 6 years ago • 2 comments

[regarding v6]

Currently, there are two issues with the way we are parsing query params:

  1. Users need to pass =true to query params for them to take hold, i.e. localhost:3000/?presenterMode=true
  2. Location matters, so a user cannot append their URL with presenterMode=true, it has to come immediately after the localhost, before any other slideElements are tacked on

We should handle this differently. In addition to parsing these in a cleaner way, we should add support for (listed in priority order):

  • ?presenter
  • ?overview
  • ?export
  • ?print
  • ?export&print

kale-stew avatar Jan 22 '20 05:01 kale-stew

Hii, @kale-stew can I work on this .?

ruhci28 avatar Jul 20 '20 04:07 ruhci28

@ruhci28 absolutely!

kale-stew avatar Jul 20 '20 04:07 kale-stew