Skip to content

Commit

Permalink
style(prettier)
Browse files Browse the repository at this point in the history
  • Loading branch information
darioferderber committed Apr 20, 2023
1 parent d71956a commit cf9a87a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/replace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ const execSrcReplacements = (src: any, replacements: any[]) => {
(typeof replacement.from === 'string' ||
replacement.from instanceof RegExp) === false
) {
throw new Error(
throw new TypeError(
"[vite-plugin-replace]: The replacement option 'from' is not of type 'string' or 'RegExp'."
)
} else if (
(typeof replacement.to === 'string' ||
replacement.to instanceof Function) === false
) {
throw new Error(
throw new TypeError(
"[vite-plugin-replace]: The replacement option 'to' is not of type 'string' or 'Function'"
)
} else src = src.replace(replacement.from, replacement.to)
Expand All @@ -26,11 +26,11 @@ export const replaceCodePlugin = (config: any) => {
replacements: [],
}
} else if ((typeof config === 'object' || config !== null) === false) {
throw new Error(
throw new TypeError(
"[vite-plugin-replace]: The configuration is not of type 'Object'."
)
} else if (Array.isArray(config.replacements) === false) {
throw new Error(
throw new TypeError(
"[vite-plugin-replace]: The configuration option 'replacement' is not of type 'Array'."
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/CookieIframe.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<ClientOnly>
<iframe
:cookie-enabled="null"
v-if="isCookieFunctionalEnabled"
:cookie-enabled="null"
v-bind="$attrs"
/>
<div v-else class="cookieControl__BlockedIframe">
Expand Down

0 comments on commit cf9a87a

Please sign in to comment.