Skip to content

Commit

Permalink
Update turbo_native
Browse files Browse the repository at this point in the history
  • Loading branch information
treagod authored Aug 26, 2024
1 parent b50d490 commit e8763f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/marten_turbo/template/context_producer/turbo_native.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module MartenTurbo
module ContextProducer
class TurboNative < Marten::Template::ContextProducer
def produce(request : Marten::HTTP::Request? = nil)
{"turbo_native?" => request.turbo_native_app?}
{"turbo_native?" => request.turbo_native_app?} if request
end
end
end
Expand Down

0 comments on commit e8763f3

Please sign in to comment.