From 98ed77c3cb18bf1d25a223210f7686cbec8dcad2 Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Sat, 15 Jun 2024 12:28:25 +0200 Subject: [PATCH] shx-3d-render --- snippets/shx-3d-render-input.liquid | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index 6e73f83..12113ec 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -1,5 +1,4 @@ -{% assign content_type = content_type | default: 'body' %} -{% assign section_id = section_id | default: 'null' unless section_id %} +{% assign content_type = content_type | default: 'body' %} {% if content_type == 'body' %} @@ -15,7 +14,7 @@ {% endcomment %} - + {% elsif content_type == 'init' %} @@ -120,6 +119,9 @@ this.container = null; this.uuid = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); + + this.section_id = this.getAttribute('section_id'); + console.log('section_id', this.section_id); } connectedCallback() {