From 6cd8297ecfa68ab6f834b7fbb38ca00f86fb27a6 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Tue, 16 Jul 2024 10:32:42 +1000 Subject: [PATCH] Actually fix forex JavaScript --- v2/static/js/forex.js | 10 ++++------ v2/templates/yoga7x.html | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/v2/static/js/forex.js b/v2/static/js/forex.js index a4a5373..2f8f273 100644 --- a/v2/static/js/forex.js +++ b/v2/static/js/forex.js @@ -1,9 +1,7 @@ -document.addEventListener('DOMContentLoaded', () => { - const select = document.getElementById('forex'); - select.addEventListener('change', updatePrices); - // Trigger initial conversion (Firefox preserves selected option across refresh - updatePrices.call(select); -}) +const select = document.getElementById('forex'); +select.addEventListener('change', updatePrices); +// Trigger initial conversion (Firefox preserves selected option across refresh +updatePrices.call(select); /** * @this {HTMLSelectElement} diff --git a/v2/templates/yoga7x.html b/v2/templates/yoga7x.html index 20cfa02..378563a 100644 --- a/v2/templates/yoga7x.html +++ b/v2/templates/yoga7x.html @@ -1,7 +1,7 @@ {% extends "page.html" %} {% block head %} - +