Skip to content

Commit

Permalink
Fix style URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Sep 25, 2024
1 parent f2d53cd commit f416318
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions frontend/src/sdk/shared/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { de, enUS, tr } from 'date-fns/locale';
import { isDev, isFunction, isNumber, isObject, isString, isUndefined, logWarn } from './utils';
import { isFunction, isNumber, isObject, isString, isUndefined, logWarn } from './utils';

export const SUPPORTED_LOCALES = {
en: enUS,
Expand Down Expand Up @@ -192,10 +192,6 @@ export function buildSDKConfig(opts: SDKConfig, scriptLocation: string | null |
options.styleUrl = undefined!;
}

if (!options.styleUrl && !isDev()) {
options.styleUrl = `${options.apiUrl}/build/notifo-sdk.css`;
}

if (!isStringOption(options.serviceWorkerUrl)) {
logWarn('init.serviceWorkerUrl must be a string if defined.');
options.serviceWorkerUrl = undefined!;
Expand Down

0 comments on commit f416318

Please sign in to comment.