Skip to content

Commit

Permalink
fix edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Oct 9, 2024
1 parent 86b0d3b commit d3fb500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/BlueskyClip/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ViewController: UIViewController, WKScriptMessageHandler, WKNavigationDele
let payload = try? JSONDecoder().decode(WebViewActionPayload.self, from: data) else {
return
}

switch payload.action {
case .present:
guard let url = self.starterPackUrl else {
Expand Down Expand Up @@ -72,7 +72,7 @@ class ViewController: UIViewController, WKScriptMessageHandler, WKNavigationDele
// pathComponents starts with "/" as the first component, then each path name. so...
// ["/", "start", "name", "rkey"]
if url.pathComponents.count == 4,
url.pathComponents[1] == "start" {
(url.pathComponents[1] == "start" || url.pathComponents[1] == "starter-pack") {
self.starterPackUrl = url
}

Expand Down

0 comments on commit d3fb500

Please sign in to comment.