Marquage des balises <script> en inline dans Lightbox et PhotoGallery pour éviter l'extraction automatique des scripts.
This commit is contained in:
parent
b26bc077d9
commit
e0cffad911
2 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ const categoryLabels: Record<string, string> = {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<script define:vars={{ imagesForJS, albumTitle, showCategory, category, categoryLabels }}>
|
||||
<script is:inline define:vars={{ imagesForJS, albumTitle, showCategory, category, categoryLabels }}>
|
||||
window.lightboxData = {
|
||||
images: JSON.parse(imagesForJS),
|
||||
albumTitle,
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ const imagesForJS = JSON.stringify(images.map(img => ({
|
|||
<SlideControls />
|
||||
</div>
|
||||
|
||||
<script define:vars={{ imagesForJS }}>
|
||||
<script is:inline define:vars={{ imagesForJS }}>
|
||||
window.galleryData = {
|
||||
images: JSON.parse(imagesForJS),
|
||||
currentCategory: 'favorites'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue