From 1e1834158b655eed498f3a2488ab3e75dfcc8b4d Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Mon, 7 Sep 2020 20:45:20 +1000 Subject: [PATCH] fix vanilla template for windows --- cmd/templates/vanilla/frontend/src/main.css | 4 ++-- cmd/templates/vanilla/frontend/src/main.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/templates/vanilla/frontend/src/main.css b/cmd/templates/vanilla/frontend/src/main.css index 14a1ae5ac..662d06327 100644 --- a/cmd/templates/vanilla/frontend/src/main.css +++ b/cmd/templates/vanilla/frontend/src/main.css @@ -11,7 +11,7 @@ body { display: block; width:100%; text-align: center; - margin-top: 3rem; + margin-top: 1rem; font-size: 2rem; } @@ -24,7 +24,7 @@ button { } .result { - margin-top: 3rem; + margin-top: 1rem; text-align: center; font-size: 2rem; } diff --git a/cmd/templates/vanilla/frontend/src/main.js b/cmd/templates/vanilla/frontend/src/main.js index 6e4a37295..609e55e43 100644 --- a/cmd/templates/vanilla/frontend/src/main.js +++ b/cmd/templates/vanilla/frontend/src/main.js @@ -36,7 +36,7 @@ function start() { mystore.set(newValue); }; - mystore.subscribe( (state) => { + mystore.subscribe( function(state) { document.getElementById('counter').innerText = state; });