Skip to content

Commit

Permalink
Merge pull request #120 from qtstm32fan/main
Browse files Browse the repository at this point in the history
fix: wish url
  • Loading branch information
krypt0nn authored May 8, 2024
2 parents 6f90740 + d95cfba commit 6b49db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/main/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ impl SimpleComponent for App {
let web_cache = String::from_utf8_lossy(&web_cache);

// https://webstatic-sea.[ho-yo-ver-se].com/hkrpg/event/e20211215gacha-v3/index.html?......
if let Some(url) = web_cache.lines().rev().find(|line| line.contains("gacha-v3/index.html")) {
if let Some(url) = web_cache.lines().rev().find(|line| line.contains("gacha-v2/index.html") || line.contains("gacha-v3/index.html")) {
let url_begin_pos = url.find("https://").unwrap();
let url_end_pos = url_begin_pos + url[url_begin_pos..].find("\0\0\0\0").unwrap();

Expand Down

0 comments on commit 6b49db0

Please sign in to comment.