From 4f34787a2940989624cc7bab3543b8342a3a055e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Andreas=20Nilsen?= Date: Mon, 19 Aug 2024 10:29:46 +0200 Subject: [PATCH] fixed bug in nynorsk implementation --- yr.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yr.user.js b/yr.user.js index 9551cbb..5f2d601 100644 --- a/yr.user.js +++ b/yr.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name YR Hotkeys // @namespace http://tampermonkey.net/ -// @version 1.1 +// @version 1.1.1 // @description Hotkeys 'alt+l', 'alt+r', or 'alt+v' for yr.no // @author Your Name // @match https://www.yr.no/* @@ -46,7 +46,7 @@ } else if (event.key === 'v') { view = `forecast/daily-table`; } - } else if ($match[1] === 'nn') { + } else if (match[1] === 'nn') { console.log("This is the Nynorsk site."); if (event.key === 'l') { view = `21-dagarsvarsel`;