Skip to content

Commit

Permalink
FIO-6964: Fixes server crashing if useSessionToken option passed
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekotikov committed Jul 27, 2023
1 parent eaec267 commit 8158f92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sdk/Formio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1688,6 +1688,10 @@ export class Formio {
}

static useSessionToken(options: string | { namespace: string}) {
if (typeof localStorage === 'undefined') {
return;
}

let namespace = options
if (typeof options === 'object') {
options = options.namespace
Expand Down

0 comments on commit 8158f92

Please sign in to comment.