Skip to content

Commit

Permalink
All debugs to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuretski committed May 14, 2024
1 parent 79df06b commit f87d60d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/qwik-speak/src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ export const logDebug = (enabled: boolean | undefined, message: string) => {
}
};

export const logDebugInline = (enabled: boolean | undefined, ...message: any) => {
export const logDebugInline = (enabled: boolean | undefined, ...data: any) => {
if (enabled) {
console.debug(
'%cQwik Speak Inline',
'background: #0c75d2; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;',
...message
...data
);
}
};
2 changes: 1 addition & 1 deletion packages/qwik-speak/src/use-qwik-speak.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const useQwikSpeak = (props: QwikSpeakProps) => {
translationFn: resolvedTranslationFn
};

const {config} = state;
const { config } = state;

// Set Qwik Speak server context
setSpeakServerContext(config);
Expand Down

0 comments on commit f87d60d

Please sign in to comment.