Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions Sources/MeridianBrowser/MeridianBrowserApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ struct MeridianBrowserApp: App {
WindowGroup("Bare Browser") {
BrowserWindowView(store: store)
.frame(minWidth: 900, minHeight: 620)
.handlesExternalEvents(preferring: ["*"], allowing: ["*"])
.onOpenURL { url in
store.open(url)
}
.onChange(of: scenePhase) { _, phase in
if phase != .active {
store.flushScheduledSessionPersistence()
Expand Down
14 changes: 14 additions & 0 deletions script/build_and_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,20 @@ cat >"$INFO_PLIST" <<PLIST
<string>$PRODUCT_NAME</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>Web URLs</string>
<key>CFBundleURLSchemes</key>
<array>
<string>http</string>
<string>https</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
</array>
<key>LSMinimumSystemVersion</key>
<string>$MIN_SYSTEM_VERSION</string>
<key>NSPrincipalClass</key>
Expand Down