From ba9c0690a669eff0f91f3573ddf8e976150b87ad Mon Sep 17 00:00:00 2001 From: Paul-Louis NECH <1821404+PLNech@users.noreply.github.com> Date: Wed, 19 Jun 2024 14:00:40 +0200 Subject: [PATCH] feat(gallery): Support old show-code syntax too --- src/stores/gallery.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/gallery.js b/src/stores/gallery.js index da1b5ad0..247ebc8a 100644 --- a/src/stores/gallery.js +++ b/src/stores/gallery.js @@ -52,8 +52,8 @@ export default class Gallery { let base64Code = searchParams.get('code') // if(!base64Code) base64Code = searchParams.get('id') // backwards compatibility with earlier form of naming. id is now called code let sketch_id = searchParams.get('sketch_id') - let showCode = searchParams.get('showCode') - + let showCode = searchParams.get('showCode') || searchParams.get('show-code') // backwards compatibility with earlier form of naming. + console.log('code is', base64Code) let code = '' //console.log("id", sketch_id, "code", base64Code)