From 05373db52766e890b5b12669153c1994af850b9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=A0vara?= Date: Fri, 6 Dec 2024 18:42:28 +0100 Subject: [PATCH] Set session's path config from the global path config. --- Source/Turbo/Navigator/Navigator.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/Turbo/Navigator/Navigator.swift b/Source/Turbo/Navigator/Navigator.swift index 29fd1ea..13c5c47 100644 --- a/Source/Turbo/Navigator/Navigator.swift +++ b/Source/Turbo/Navigator/Navigator.swift @@ -33,14 +33,13 @@ public class Navigator { /// Convenience initializer that doesn't require manually creating `Session` instances. /// - Parameters: - /// - pathConfiguration: _optional:_ remote configuration reference /// - delegate: _optional:_ delegate to handle custom view controllers - public convenience init(pathConfiguration: PathConfiguration? = nil, delegate: NavigatorDelegate? = nil) { + public convenience init(delegate: NavigatorDelegate? = nil) { let session = Session(webView: Hotwire.config.makeWebView()) - session.pathConfiguration = pathConfiguration + session.pathConfiguration = Hotwire.config.pathConfiguration let modalSession = Session(webView: Hotwire.config.makeWebView()) - modalSession.pathConfiguration = pathConfiguration + modalSession.pathConfiguration = Hotwire.config.pathConfiguration self.init(session: session, modalSession: modalSession, delegate: delegate) }