diff --git a/src/sdk/Formio.ts b/src/sdk/Formio.ts index 10074114..887b4bc9 100644 --- a/src/sdk/Formio.ts +++ b/src/sdk/Formio.ts @@ -1689,6 +1689,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