From 102cced6d047aed9282505239fa7174f572da3af Mon Sep 17 00:00:00 2001 From: Swastik Sarkar <40518186+sswastik02@users.noreply.github.com> Date: Thu, 23 May 2024 23:39:16 +0530 Subject: [PATCH] Default version when no version is present Modifies `updateVersion` function to return "gh-pages" when no version is present. Co-authored-by: Stephen Brennan Signed-off-by: sswastik02 <40518186+sswastik02@users.noreply.github.com> --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 5c870b7..e6e9da9 100644 --- a/index.html +++ b/index.html @@ -110,8 +110,8 @@ window.history.pushState({}, '', url) return } - var version = params.get("version") - if(!version) return + var version = params.get("version"); + if(!version) return "gh-pages"; sp.innerHTML = `Distribution Kernel Configs (version: ${version})` return version }