Skip to content

Commit

Permalink
Fix query string evaluation.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Dec 16, 2020
1 parent baaf1e2 commit c4cff75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Server/wwwroot/src/RemoteControl/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export const ViewerApp = {
Otp: queryString["otp"] ? decodeURIComponent(queryString["otp"]) : "",
ServiceID: queryString["serviceID"] ? decodeURIComponent(queryString["serviceID"]) : "",
RequesterName: queryString["requesterName"] ? decodeURIComponent(queryString["requesterName"]) : "",
ViewOnlyMode: !!queryString["viewonly"],
ViewOnlyMode: queryString["viewonly"] ?
decodeURIComponent(queryString["viewonly"]).toLowerCase() == "true" :
false,
Mode: RemoteControlMode.None,
Settings: GetSettings(),

Expand Down

0 comments on commit c4cff75

Please sign in to comment.