storipress/karbon

View on GitHub
packages/karbon/src/runtime/composables/embed.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useEmbed has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function useEmbed() {
  const loadMap = new Map<string, DeferredPromise<void>>()

  useHead({
    script: thirdPartyScripts.map(({ key, src }) => {
Severity: Minor
Found in packages/karbon/src/runtime/composables/embed.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status