Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Fast/DevHead.swift
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ struct DevHead: View {
}
Divider()
}
Button("Focus Page") { browser.active.map { $0.page.window?.makeFirstResponder($0.page) } }
Button("Focus Page") { if let tab = browser.active { tab.page.window?.makeFirstResponder(tab.page) } }
if let chrome = browser.chromiumDevFront?.chromiumDev {
// Chrome's DevTools have these of their own, and no use for
// WebKit's More Tools and Device Settings.
Expand Down
Loading