From 5dabdd8eec01ca9833c9ace9237853e4f9342b72 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 15 May 2023 15:16:24 +0100 Subject: [PATCH] trip spaces --- app/static/js/pandora-scroll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/static/js/pandora-scroll.js b/app/static/js/pandora-scroll.js index 0a503e3..05c7abc 100644 --- a/app/static/js/pandora-scroll.js +++ b/app/static/js/pandora-scroll.js @@ -75,9 +75,9 @@ class PandoraScroll extends HTMLElement { config[a.name] = a.value != 'false' } if (a.name == 'layers') { - config[a.name] = a.value.split(' ') + config[a.name] = a.value.trim().split(' ') } else if (a.name == 'split') { - config[a.name] = a.value.split(' ') + config[a.name] = a.value.trim().split(' ') } else if (['in', 'out'].indexOf(a.name) > -1) { config[a.name] = parseTime(a.value) } else {