Skip to content

Commit

Permalink
add random generator to prevent innerhtml
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancahill committed Mar 18, 2022
1 parent b65c766 commit ead9da3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/split-generator/public/bundle.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion packages/split-generator/src/SplitGenerator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ ${
afterUpdate(() => {
split = recreateSplit()
})
const random = Math.random()
</script>

<svelte:head>
Expand Down Expand Up @@ -413,7 +415,8 @@ ${
async
type="text/javascript"
src="//cdn.carbonads.com/carbon.js?serve=CEAI45QN&placement=splitjsorg"
id="_carbonads_js"></script>
id="_carbonads_js"
name={random}></script>
</div>
<h2 class="sr-only" id="section-2-title">Options</h2>
<div class="mb-4 rounded-lg bg-white overflow-hidden shadow">
Expand Down
5 changes: 4 additions & 1 deletion packages/split-generator/src/SplitGridGenerator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ ${rowObjs
afterUpdate(() => {
split = recreateSplit()
})
const random = Math.random()
</script>

<svelte:head>
Expand Down Expand Up @@ -428,7 +430,8 @@ ${rowObjs
async
type="text/javascript"
src="//cdn.carbonads.com/carbon.js?serve=CEAI45QN&placement=splitjsorg"
id="_carbonads_js"></script>
id="_carbonads_js"
name={random}></script>
</div>
<h2 class="sr-only" id="section-2-title">Options</h2>
<div class="mb-4 rounded-lg bg-white overflow-hidden shadow">
Expand Down

0 comments on commit ead9da3

Please sign in to comment.