From cdc4a303af3313541183686770e9911fcc2b8e8b Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 3 Nov 2023 01:07:03 -0400 Subject: fix build number fetch (again) i think we might need to fetch every script until we find the one with build number (i.e. the "main script" is no longer fixed in the html) --- src/startup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/startup.cpp') diff --git a/src/startup.cpp b/src/startup.cpp index 89e29a5..130ba9b 100644 --- a/src/startup.cpp +++ b/src/startup.cpp @@ -43,8 +43,8 @@ std::optional GetJavascriptFileFromAppPage(const Glib::ustring &c start_position += str.size(); } - if (matches.size() >= 6) { - return matches[matches.size() - 6]; + if (matches.size() >= 7) { + return matches[matches.size() - 7]; } return {}; -- cgit v1.2.3