Skip to content

Commit

Permalink
fix: issue 7394 RELEASE (#778)
Browse files Browse the repository at this point in the history
## Related Issues

Fixes descope/etc#7394
  • Loading branch information
nirgur authored Aug 14, 2024
1 parent 2605eeb commit caade56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/libs/sdk-mixins/src/mixins/baseStaticUrlMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const baseStaticUrlMixin = createSingletonMixin(
<T extends CustomElementConstructor>(superclass: T) => {
return class BaseStaticUrlMixinClass extends superclass {
get baseStaticUrl() {
return this.getAttribute('base-static-url');
return this.getAttribute('base-static-url') || '';
}
};
},
Expand Down
2 changes: 1 addition & 1 deletion packages/libs/sdk-mixins/src/mixins/baseUrlMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const baseUrlMixin = createSingletonMixin(
<T extends CustomElementConstructor>(superclass: T) => {
return class BaseUrlMixinClass extends superclass {
get baseUrl() {
return this.getAttribute('base-url');
return this.getAttribute('base-url') || '';
}
};
},
Expand Down
2 changes: 1 addition & 1 deletion packages/sdks/web-component/test/descope-wc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const THEME_DEFAULT_FILENAME = `theme.json`;
const abTestingKey = getABTestingKey();

const defaultOptionsValues = {
baseUrl: null,
baseUrl: '',
deferredRedirect: false,
abTestingKey,
lastAuth: {},
Expand Down

0 comments on commit caade56

Please sign in to comment.