From 2fd3c78c1291602a0b4980dc06d5adfd82104b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=A0vara?= Date: Mon, 16 Dec 2024 16:24:25 +0100 Subject: [PATCH] Move the configuration of the custom user agent prefix to the AppDelegate. --- Demo/AppDelegate.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Demo/AppDelegate.swift b/Demo/AppDelegate.swift index 41ec5c7..c857745 100644 --- a/Demo/AppDelegate.swift +++ b/Demo/AppDelegate.swift @@ -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,