Skip to content

Commit

Permalink
fix: replayClick always being applied (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauravbv authored Aug 13, 2024
1 parent ee8c585 commit 594b3bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ export default defineNuxtModule<ModuleOptions>({
scripts[s] = template(scriptT)({ options })
}

const replayClickScript = options.replayClick ? scripts.replay : false

const exports = `export const script = ${JSON.stringify(scripts.global, null, 2)}
export const replayScript = ${JSON.stringify(scripts.replay, null, 2)}
export const replayScript = ${JSON.stringify(replayClickScript, null, 2)}
export const mode = ${JSON.stringify(options.mode)}
export const include = ${JSON.stringify(options.include)}
export const exclude = ${JSON.stringify(options.exclude)}
Expand Down

0 comments on commit 594b3bd

Please sign in to comment.