Skip to content

Commit

Permalink
Move the configuration of the custom user agent prefix to the AppDele…
Browse files Browse the repository at this point in the history
…gate.
  • Loading branch information
svara committed Dec 16, 2024
1 parent 3a4bb7b commit 2fd3c78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Demo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
.file(Bundle.main.url(forResource: "path-configuration", withExtension: "json")!)
])

// Set an optional custom user agent application prefix.
Hotwire.config.applicationUserAgentPrefix = "Hotwire Demo;"

// Register bridge components
Hotwire.registerBridgeComponents([
FormComponent.self,
Expand Down

0 comments on commit 2fd3c78

Please sign in to comment.