From 4dbd81468a80335e3ac9d3b4380599fc774c1b91 Mon Sep 17 00:00:00 2001 From: andrezarzur Date: Thu, 5 Sep 2024 10:26:30 -0300 Subject: [PATCH 1/4] feat: adding nonce option for wavesurfer config --- src/renderer.ts | 4 +++- src/wavesurfer.ts | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer.ts b/src/renderer.ts index f08b56e91..763545381 100644 --- a/src/renderer.ts +++ b/src/renderer.ts @@ -169,8 +169,10 @@ class Renderer extends EventEmitter { const div = document.createElement('div') const shadow = div.attachShadow({ mode: 'open' }) + const nonce = this.options.nonce; + shadow.innerHTML = ` -